Delete the gdk_DC when exiting, just to be sure.
1999-09-21 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting, just to be sure. * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of unused variables, leftovers from the X11 version. * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd. * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only downcase fields on X11.
This commit is contained in:
committed by
Tor Lillqvist
parent
be9abde533
commit
de1cf2ecba
@ -67,29 +67,13 @@ gdk_visual_init (void)
|
||||
} bmi;
|
||||
HBITMAP hbm;
|
||||
|
||||
static const gint possible_depths[7] = { 32, 24, 16, 15, 8, 4, 1 };
|
||||
static const GdkVisualType possible_types[6] =
|
||||
{
|
||||
GDK_VISUAL_DIRECT_COLOR,
|
||||
GDK_VISUAL_TRUE_COLOR,
|
||||
GDK_VISUAL_PSEUDO_COLOR,
|
||||
GDK_VISUAL_STATIC_COLOR,
|
||||
GDK_VISUAL_GRAYSCALE,
|
||||
GDK_VISUAL_STATIC_GRAY
|
||||
};
|
||||
|
||||
static const gint npossible_depths = sizeof(possible_depths)/sizeof(gint);
|
||||
static const gint npossible_types = sizeof(possible_types)/sizeof(GdkVisualType);
|
||||
|
||||
int rastercaps, numcolors, sizepalette, colorres, bitspixel;
|
||||
Visual *default_xvisual;
|
||||
int rastercaps, numcolors, sizepalette, bitspixel;
|
||||
|
||||
system_visual = g_new (GdkVisualPrivate, 1);
|
||||
|
||||
bitspixel = GetDeviceCaps (gdk_DC, BITSPIXEL);
|
||||
rastercaps = GetDeviceCaps (gdk_DC, RASTERCAPS);
|
||||
default_xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual = default_xvisual;
|
||||
system_visual->xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual->visualid = 0;
|
||||
system_visual->xvisual->bitspixel = bitspixel;
|
||||
|
||||
@ -98,7 +82,6 @@ gdk_visual_init (void)
|
||||
system_visual->visual.type = GDK_VISUAL_PSEUDO_COLOR;
|
||||
numcolors = GetDeviceCaps (gdk_DC, NUMCOLORS);
|
||||
sizepalette = GetDeviceCaps (gdk_DC, SIZEPALETTE);
|
||||
colorres = GetDeviceCaps (gdk_DC, COLORRES);
|
||||
system_visual->xvisual->map_entries = sizepalette;
|
||||
}
|
||||
else if (bitspixel == 1)
|
||||
|
||||
Reference in New Issue
Block a user