From bdc68e679f138311b876ddfb85bbeef3ddfe73ac Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 9 Jan 2017 00:52:36 -0500 Subject: [PATCH] GDI: flip image and render text after other graphics --- gfx/drivers/gdi_gfx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/drivers/gdi_gfx.c b/gfx/drivers/gdi_gfx.c index 023b536446..af297d301a 100644 --- a/gfx/drivers/gdi_gfx.c +++ b/gfx/drivers/gdi_gfx.c @@ -252,9 +252,6 @@ static bool gdi_gfx_frame(void *data, const void *frame, menu_driver_ctl(RARCH_MENU_CTL_FRAME, NULL); #endif - if (msg) - font_driver_render_msg(NULL, msg, NULL); - if (draw) { HDC winDC = GetDC(hwnd); @@ -281,7 +278,7 @@ static bool gdi_gfx_frame(void *data, const void *frame, ZeroMemory(&info, sizeof(BITMAPINFO)); info.bmiHeader.biBitCount = gdi_video_bits; info.bmiHeader.biWidth = width; - info.bmiHeader.biHeight = height; + info.bmiHeader.biHeight = -height; info.bmiHeader.biPlanes = 1; info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); info.bmiHeader.biSizeImage = pitch * height; @@ -337,6 +334,9 @@ static bool gdi_gfx_frame(void *data, const void *frame, ReleaseDC(hwnd, winDC); } + if (msg) + font_driver_render_msg(NULL, msg, NULL); + //InvalidateRect(hwnd, NULL, true); video_context_driver_update_window_title();