GDK-Win32: Reorganize gdkgdlcontext-win32.c
Group the WGL-specific code and GLES-specific code together, so that we can reduce the number of #ifdef ... in the code, to make the code more readable and easily maintained. This will pave the way to add a fallback mode to use libANGLE (OpenGL/ES) in case the Desktop OpenGL support is inadequte, if OpenGL/ES support is enabled in the build. This is somewhat based on the updates that were done in GTK master, so we are using one subclass for WGL-based GdkGLContexts, and another for GLES-based GdkGLContexts. Also remove the underscores in many of the functions in gdkglcontext-win32.*. Clean up the code a bit as a result.
This commit is contained in:
@ -3348,7 +3348,7 @@ gdk_event_translate (MSG *msg,
|
||||
do_show_window (window, msg->wParam == SC_MINIMIZE ? TRUE : FALSE);
|
||||
|
||||
if (msg->wParam == SC_RESTORE)
|
||||
_gdk_win32_window_invalidate_egl_framebuffer (window);
|
||||
gdk_win32_window_invalidate_egl_framebuffer (window);
|
||||
break;
|
||||
case SC_MAXIMIZE:
|
||||
impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
|
||||
@ -3436,7 +3436,7 @@ gdk_event_translate (MSG *msg,
|
||||
{
|
||||
MINMAXINFO our_mmi;
|
||||
|
||||
_gdk_win32_window_invalidate_egl_framebuffer (window);
|
||||
gdk_win32_window_invalidate_egl_framebuffer (window);
|
||||
|
||||
if (_gdk_win32_window_fill_min_max_info (window, &our_mmi))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user