From cbf98465007433543e8adf8c11db08479bc94a30 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Wed, 7 Jul 1999 00:18:43 +0000 Subject: [PATCH] Exorcise gScreenNum. git-svn-id: svn://10.0.0.236/trunk@38504 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/xlib/nsAppShell.cpp | 2 +- mozilla/widget/src/xlib/nsWidget.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/widget/src/xlib/nsAppShell.cpp b/mozilla/widget/src/xlib/nsAppShell.cpp index cffc84979b7..dce3628fae2 100644 --- a/mozilla/widget/src/xlib/nsAppShell.cpp +++ b/mozilla/widget/src/xlib/nsAppShell.cpp @@ -131,12 +131,12 @@ NS_METHOD nsAppShell::Create(int* argc, char ** argv) exit(1); } _Xdebug = 1; - gScreenNum = DefaultScreen(gDisplay); gScreen = DefaultScreenOfDisplay(gDisplay); // init the rgb layer. this will provide // the visual information for us. xlib_rgb_init(gDisplay, gScreen); gVisual = xlib_rgb_get_visual(); + // set the static vars for this class so we can find our // way around... vis_template.visualid = XVisualIDFromVisual(gVisual); diff --git a/mozilla/widget/src/xlib/nsWidget.h b/mozilla/widget/src/xlib/nsWidget.h index 9d60555ae81..ba214ab0d11 100644 --- a/mozilla/widget/src/xlib/nsWidget.h +++ b/mozilla/widget/src/xlib/nsWidget.h @@ -141,7 +141,6 @@ protected: extern Display *gDisplay; extern Screen *gScreen; -extern int gScreenNum; extern int gDepth; extern Visual *gVisual; extern XVisualInfo *gVisualInfo;