summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkglcontext-win32.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-10-28 13:42:55 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-10-28 15:56:36 +0800
commitfcecec1a9da0188805888e87b7e5db5d79897af4 (patch)
treee620d3703cdccae7128de498ead15dce2d2fd127 /gdk/win32/gdkglcontext-win32.c
parent45c0379f873e33f6ac072cd32bb7785b61a2f962 (diff)
downloadgtk+-fcecec1a9da0188805888e87b7e5db5d79897af4.tar.gz
GDK/Win32: Deal with leftovers from removal of GdkWindow items
We need to further remove items for the removal of: -GdkWindow->depth (commit 6cc94ff) -gdk_window_get_visual()/GdkWindow->visual (commit f420dc7) -GDK visual query APIs (commit 45c0379) https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'gdk/win32/gdkglcontext-win32.c')
-rw-r--r--gdk/win32/gdkglcontext-win32.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdk/win32/gdkglcontext-win32.c b/gdk/win32/gdkglcontext-win32.c
index 499f8313e4..02684c7bce 100644
--- a/gdk/win32/gdkglcontext-win32.c
+++ b/gdk/win32/gdkglcontext-win32.c
@@ -420,9 +420,8 @@ _create_gl_context (HDC hdc,
}
static gboolean
-_set_pixformat_for_hdc (HDC hdc,
- gint *best_idx,
- const gboolean need_alpha_bits)
+_set_pixformat_for_hdc (HDC hdc,
+ gint *best_idx)
{
PIXELFORMATDESCRIPTOR pfd;
gboolean set_pixel_format_result = FALSE;
@@ -430,7 +429,7 @@ _set_pixformat_for_hdc (HDC hdc,
/* one is only allowed to call SetPixelFormat(), and so ChoosePixelFormat()
* one single time per window HDC
*/
- *best_idx = _get_wgl_pfd (hdc, need_alpha_bits, &pfd);
+ *best_idx = _get_wgl_pfd (hdc, &pfd);
if (*best_idx != 0)
set_pixel_format_result = SetPixelFormat (hdc, *best_idx, &pfd);
@@ -461,8 +460,7 @@ _gdk_win32_gl_context_realize (GdkGLContext *context,
GdkWindowImplWin32 *impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
if (!_set_pixformat_for_hdc (context_win32->gl_hdc,
- &pixel_format,
- context_win32->need_alpha_bits))
+ &pixel_format))
{
g_set_error_literal (error, GDK_GL_ERROR,
GDK_GL_ERROR_UNSUPPORTED_FORMAT,