Commit de1cf2ec authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist
Browse files

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.
parent be9abde5
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
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.
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
......
......@@ -617,6 +617,8 @@ gdk_exit_func (void)
gdk_input_exit ();
gdk_key_repeat_restore ();
gdk_dnd_exit ();
DeleteDC (gdk_DC);
gdk_DC = NULL;
gdk_initialized = 0;
}
}
......
......@@ -617,6 +617,8 @@ gdk_exit_func (void)
gdk_input_exit ();
gdk_key_repeat_restore ();
gdk_dnd_exit ();
DeleteDC (gdk_DC);
gdk_DC = NULL;
gdk_initialized = 0;
}
}
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment