X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmenu.c;h=3152cb2ec7343bb799e5ce8be349e1f9c66b6874;hp=3ebe9f5d16a6e60b85bc9c41955eeef4f163406e;hb=00a5d4598d4a79e0041ce958fe65a4c20338b6cc;hpb=2daaaae3b2bb131d88ad750d8a74c146f04da62a diff --git a/frontend/menu.c b/frontend/menu.c index 3ebe9f5d..3152cb2e 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); } }