+2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
+
+ * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
+ the last change compile.
+
2005-08-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted)
+2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
+
+ * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
+ the last change compile.
+
2005-08-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted)
+2005-08-10 J. Ali Harlow <ali@juiblex.co.uk>
+
+ * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make
+ the last change compile.
+
2005-08-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted)
gdk_font_from_description_for_display (GdkDisplay *display,
PangoFontDescription *font_desc)
{
- GdkFont *result = NULL;
LOGFONT logfont;
int size;
size = PANGO_PIXELS (pango_font_description_get_size (font_desc));
- logfont.lfHeight = - MulDiv (PointSize, GetDeviceCaps (hDC, LOGPIXELSY), 72);
+ logfont.lfHeight = - MulDiv (size,
+ GetDeviceCaps (_gdk_display_hdc, LOGPIXELSY),
+ 72);
logfont.lfWidth = 0;
logfont.lfEscapement = 0;
logfont.lfOrientation = 0;