diff options
author | notaz | 2012-07-19 02:48:02 +0300 |
---|---|---|
committer | notaz | 2012-07-19 02:48:02 +0300 |
commit | 00a5d4598d4a79e0041ce958fe65a4c20338b6cc (patch) | |
tree | 2cb9ec90678588d542a8fa8715f6b756204a4f02 /frontend/menu.c | |
parent | 2daaaae3b2bb131d88ad750d8a74c146f04da62a (diff) | |
download | pcsx_rearmed-00a5d4598d4a79e0041ce958fe65a4c20338b6cc.tar.gz pcsx_rearmed-00a5d4598d4a79e0041ce958fe65a4c20338b6cc.tar.bz2 pcsx_rearmed-00a5d4598d4a79e0041ce958fe65a4c20338b6cc.zip |
gpulib: implement rgb888_to_rgb565
and use it for menu
Diffstat (limited to 'frontend/menu.c')
-rw-r--r-- | frontend/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/menu.c b/frontend/menu.c index 3ebe9f5..3152cb2 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -590,7 +590,7 @@ static void draw_savestate_bg(int slot) x = gpu->ulControl[5] & 0x3ff; y = (gpu->ulControl[5] >> 10) & 0x1ff; - s = (u16 *)gpu->psxVRam + y * 1024 + (x & ~1); + s = (u16 *)gpu->psxVRam + y * 1024 + x; w = psx_widths[(gpu->ulStatus >> 16) & 7]; tmp = gpu->ulControl[7]; h = ((tmp >> 10) & 0x3ff) - (tmp & 0x3ff); @@ -2242,7 +2242,7 @@ static void menu_leave_emu(void) } else { for (; h > 0; h--, d += g_menuscreen_w, s += last_psx_w * 3) { - bgr888_to_rgb565(d, s, w * 3); + rgb888_to_rgb565(d, s, w * 3); menu_darken_bg(d, d, w, 0); } } |