mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-09 04:21:33 +00:00
GDI: no more flicker
This commit is contained in:
parent
f51472395a
commit
0ee3f39d76
@ -332,11 +332,11 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
if (msg)
|
||||
font_driver_render_msg(NULL, msg, NULL);
|
||||
|
||||
InvalidateRect(hwnd, NULL, true);
|
||||
InvalidateRect(hwnd, NULL, false);
|
||||
|
||||
video_context_driver_update_window_title();
|
||||
|
||||
video_context_driver_swap_buffers();
|
||||
//video_context_driver_swap_buffers();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -25,6 +25,10 @@
|
||||
|
||||
#include "../menu_display.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(_XBOX)
|
||||
#include "../common/win32_common.h"
|
||||
#endif
|
||||
|
||||
static void *menu_display_gdi_get_default_mvp(void)
|
||||
{
|
||||
return NULL;
|
||||
@ -55,11 +59,25 @@ static void menu_display_gdi_viewport(void *data)
|
||||
|
||||
static void menu_display_gdi_restore_clear_color(void)
|
||||
{
|
||||
/*HBRUSH brush = CreateSolidBrush(GetSysColor(COLOR_WINDOW));
|
||||
RECT rect;
|
||||
HWND hwnd = win32_get_window();
|
||||
HDC hdc = GetDC(hwnd);
|
||||
|
||||
GetClientRect(hwnd, &rect);
|
||||
|
||||
FillRect(hdc, &rect, brush);
|
||||
|
||||
DeleteObject(brush);
|
||||
|
||||
ReleaseDC(hwnd, hdc);*/
|
||||
}
|
||||
|
||||
static void menu_display_gdi_clear_color(menu_display_ctx_clearcolor_t *clearcolor)
|
||||
{
|
||||
(void)clearcolor;
|
||||
|
||||
menu_display_gdi_restore_clear_color();
|
||||
}
|
||||
|
||||
static bool menu_display_gdi_font_init_first(
|
||||
|
Loading…
Reference in New Issue
Block a user