Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: utility/bmpblk_utility.cc

Issue 6534025: Correctly handle reuse of screens in yaml file. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Fix indentation Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/bitmaps/case_reuse.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/bmpblk_utility.cc
diff --git a/utility/bmpblk_utility.cc b/utility/bmpblk_utility.cc
index 742bd9bc4ab480e5943229b48c11a7f31d4d5162..8605dde046fa4d699197a7d238ef4ea5db69875b 100644
--- a/utility/bmpblk_utility.cc
+++ b/utility/bmpblk_utility.cc
@@ -476,7 +476,8 @@ void BmpBlockUtil::pack_bmpblock() {
/* Compute the ImageInfo offsets from start of BMPBLOCK. */
uint32_t current_offset = sizeof(BmpBlockHeader) +
- sizeof(ScreenLayout) * config_.screens_map.size();
+ sizeof(ScreenLayout) * (config_.header.number_of_localizations *
+ config_.header.number_of_screenlayouts);
for (unsigned int i = 0; i < config_.image_names.size(); ++i) {
string image_name = config_.image_names[i];
ImageConfig &img = config_.images_map[image_name];
« no previous file with comments | « tests/bitmaps/case_reuse.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698