diff options
author | Doug Zongker <dougz@google.com> | 2012-09-05 02:02:39 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-09-05 02:02:39 +0200 |
commit | 4ce95408144b873b469b1049c91fdcd8fd48e3ef (patch) | |
tree | d26dc6dc861c69c8f80ae9aac9a13b14bee3381b /minui/resources.c | |
parent | am f4c6ec84: fix format of installing_text (diff) | |
parent | minor recovery fixes (diff) | |
download | android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar.gz android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar.bz2 android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar.lz android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar.xz android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.tar.zst android_bootable_recovery-4ce95408144b873b469b1049c91fdcd8fd48e3ef.zip |
Diffstat (limited to 'minui/resources.c')
-rw-r--r-- | minui/resources.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/minui/resources.c b/minui/resources.c index ac7bdac4c..065f4317e 100644 --- a/minui/resources.c +++ b/minui/resources.c @@ -178,8 +178,6 @@ exit: static int matches_locale(const char* loc) { if (locale == NULL) return 0; - printf("matching loc=[%s] vs locale=[%s]\n", loc, locale); - if (strcmp(loc, locale) == 0) return 1; // if loc does *not* have an underscore, and it matches the start @@ -190,7 +188,6 @@ static int matches_locale(const char* loc) { int i; for (i = 0; loc[i] != 0 && loc[i] != '_'; ++i); if (loc[i] == '_') return 0; - printf(" partial match possible; i = %d\n", i); return (strncmp(locale, loc, i) == 0 && locale[i] == '_'); } @@ -268,9 +265,9 @@ int res_create_localized_surface(const char* name, gr_surface* pSurface) { int len = row[4]; char* loc = row+5; - printf("row %d: %s %d x %d\n", y, loc, w, h); - if (y+1+h >= height || matches_locale(loc)) { + printf(" %20s: %s (%d x %d @ %d)\n", name, loc, w, h, y); + surface = malloc(sizeof(GGLSurface)); if (surface == NULL) { result = -8; |