Minor gamelist fix

This commit is contained in:
Henrik Rydgard 2013-04-14 12:24:51 +02:00
parent 7972f98739
commit 4c9e8defe8
2 changed files with 5 additions and 4 deletions

View File

@ -562,7 +562,10 @@ void FileListAdapter::drawItem(int item, int x, int y, int w, int h, bool select
icon = iter->second;
}
int iconSpace = 144;
float scaled_h = ui_atlas.images[I_BUTTON].h;
float scaled_w = scaled_h * (144.f / 80.f);
int iconSpace = scaled_w + 10;
ui_draw2d.DrawImage2GridH(selected ? I_BUTTON_SELECTED: I_BUTTON, x, y, x + w);
ui_draw2d.DrawTextShadow(UBUNTU24, (*items_)[item].name.c_str(), x + UI_SPACE + iconSpace, y + 25, 0xFFFFFFFF, ALIGN_LEFT | ALIGN_VCENTER);
@ -577,8 +580,6 @@ void FileListAdapter::drawItem(int item, int x, int y, int w, int h, bool select
}
}
if (ginfo) {
float scaled_h = ui_atlas.images[I_BUTTON].h;
float scaled_w = scaled_h * (144.f / 80.f);
if (ginfo->iconTexture) {
uint32_t color = whiteAlpha(ease((time_now_d() - ginfo->timeIconWasLoaded) * 2));
UIFlush();

2
native

@ -1 +1 @@
Subproject commit 345180dcef8b47a3c21b6eb7a18942e54eb93c6c
Subproject commit 0d0ed1256b5c7fafa86de4ea75d29bbc5b16d12e