From ddeadd1c02880367ad786b113d352a519f45ec73 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 23 Jul 2009 23:05:34 +0000 Subject: Merge LibCSS port to trunk. svn path=/trunk/netsurf/; revision=8752 --- gtk/gtk_scaffolding.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk/gtk_scaffolding.c') diff --git a/gtk/gtk_scaffolding.c b/gtk/gtk_scaffolding.c index d6c4f1e55..6905408fa 100644 --- a/gtk/gtk_scaffolding.c +++ b/gtk/gtk_scaffolding.c @@ -24,6 +24,7 @@ #include #include #include "content/content.h" +#include "css/utils.h" #include "desktop/browser.h" #include "desktop/history_core.h" #include "desktop/gui.h" @@ -1241,9 +1242,9 @@ nsgtk_scaffolding *nsgtk_new_scaffolding(struct gui_window *toplevel) g->preferences_dialog = NULL; - css_screen_dpi = gdk_screen_get_resolution( - gtk_widget_get_screen(GTK_WIDGET(g->window))); - LOG(("Set CSS DPI to %f", css_screen_dpi)); + nscss_screen_dpi = FLTTOFIX(gdk_screen_get_resolution( + gtk_widget_get_screen(GTK_WIDGET(g->window)))); + LOG(("Set CSS DPI to %f", FIXTOFLT(nscss_screen_dpi))); /* set this window's size and position to what's in the options, or * or some sensible default if they're not set yet. -- cgit v1.2.3