From 2ca2315a3b06f17e65aca09e828ad1448eb84689 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Tue, 26 Dec 2006 15:18:24 +0000 Subject: More fixes. --- hardinfo2/arch/common/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2/arch/common') diff --git a/hardinfo2/arch/common/display.h b/hardinfo2/arch/common/display.h index 7bab4b50..5c1ed849 100644 --- a/hardinfo2/arch/common/display.h +++ b/hardinfo2/arch/common/display.h @@ -127,7 +127,7 @@ computer_get_display(void) GdkScreen *screen = gdk_screen_get_default(); - if (screen) { + if (screen && GDK_IS_SCREEN(screen)) { di->width = gdk_screen_get_width(screen); di->height = gdk_screen_get_height(screen); } else { -- cgit v1.2.3