Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API.
2001-01-07 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (gdk_window_set_title, gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API. * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret environment variable is set, don't call g_error when on a palettized (PseudoColor) display. Some people want to use GTK+ in 256-colour mode even though works only partially. * gdk/gdk.def * gtk/gtk.def * gtk/makefile.mingw.in: Update.
This commit is contained in:
committed by
Tor Lillqvist
parent
5c37906778
commit
c921abb888
@ -65,8 +65,9 @@ gdk_visual_init (void)
|
||||
|
||||
if (rastercaps & RC_PALETTE)
|
||||
{
|
||||
g_error ("Palettized display (%d-colour) mode not supported on Windows.",
|
||||
GetDeviceCaps (gdk_display_hdc, SIZEPALETTE));
|
||||
if (!getenv ("GDK_WIN32_ENABLE_BROKEN_PSEUDOCOLOR_VISUAL"))
|
||||
g_error ("Palettized display (%d-colour) mode not supported on Windows.",
|
||||
GetDeviceCaps (gdk_display_hdc, SIZEPALETTE));
|
||||
system_visual->visual.type = GDK_VISUAL_PSEUDO_COLOR;
|
||||
numcolors = GetDeviceCaps (gdk_display_hdc, NUMCOLORS);
|
||||
sizepalette = GetDeviceCaps (gdk_display_hdc, SIZEPALETTE);
|
||||
|
||||
Reference in New Issue
Block a user