@@ -110,63 +110,63 @@ extern Boolean tripleclick;
110110
111111class MCScreenDC : public MCUIDC
112112{
113- GdkGC* gc; // This is the GC in "Native" (i.e. actual screen) depth
113+ GdkGC* gc = nullptr ; // This is the GC in "Native" (i.e. actual screen) depth
114114
115- bool m_application_has_focus ; // This allows us to track if the application is at the front.
115+ bool m_application_has_focus = false ; // This allows us to track if the application is at the front.
116116
117- Atom statusatom;
118- Atom selectionatom;
117+ Atom statusatom = GDK_NONE ;
118+ Atom selectionatom = GDK_NONE ;
119119
120- uint2 destdepth; //
120+ uint2 destdepth = 0 ; //
121121
122- Boolean opened;
122+ Boolean opened = false ;
123123
124- Window Xwin; //
125- Window NULLWindow ;
124+ Window Xwin = None ; //
125+ Window NULLWindow = None ;
126126
127- MCEventnode *pendingevents;
127+ MCEventnode *pendingevents = nullptr ;
128128
129- Boolean ownselection;
129+ Boolean ownselection = False ;
130130 MCString selectiontext;
131- Boolean doubleclick;
131+ Boolean doubleclick = False ;
132132
133- GdkColormap *cmap; // Native colourmap
134- GdkColormap *cmap32 ; // 32-bit colourmap
133+ GdkColormap *cmap = nullptr ; // Native colourmap
134+ GdkColormap *cmap32 = nullptr ; // 32-bit colourmap
135135
136- GdkVisual *vis; // Native visual
137- GdkVisual *vis32 ; // 32-bit visual
136+ GdkVisual *vis = nullptr ; // Native visual
137+ GdkVisual *vis32 = nullptr ; // 32-bit visual
138138
139- bool backdrop_active;
140- bool backdrop_hard;
141- Window backdrop;
142- MCColor backdropcolor;
139+ bool backdrop_active = false ;
140+ bool backdrop_hard = false ;
141+ Window backdrop = None ;
142+ MCColor backdropcolor { 0 , 0 , 0 } ;
143143 // IM-2014-04-15: [[ Bug 11603 ]] Store converted backdrop pattern pixmap
144- Pixmap m_backdrop_pixmap;
144+ Pixmap m_backdrop_pixmap = nullptr ;
145145
146- Window last_window ; // XDND - Used for the moment to shunt the ID
146+ Window last_window = None ; // XDND - Used for the moment to shunt the ID
147147
148- bool m_has_native_theme;
149- bool m_has_native_color_dialogs;
150- bool m_has_native_print_dialogs;
151- bool m_has_native_file_dialogs;
148+ bool m_has_native_theme = false ;
149+ bool m_has_native_color_dialogs = false ;
150+ bool m_has_native_print_dialogs = false ;
151+ bool m_has_native_file_dialogs = false ;
152152
153153 // Set if GTK is available
154- bool m_has_gtk;
154+ bool m_has_gtk = false ;
155155
156156 // Input context for IME integration
157- GtkIMContext *m_im_context;
157+ GtkIMContext *m_im_context = nullptr ;
158158
159159public:
160160
161- char * syslocale ;
161+ char * syslocale = nullptr ;
162162
163- GdkDisplay *dpy;
164- Boolean has_composite_wm ;
165- Drawable dest; //
163+ GdkDisplay *dpy = nullptr ;
164+ Boolean has_composite_wm = false ;
165+ Drawable dest = None ; //
166166
167- MCNameRef displayname;
168- MCNameRef vendorname;
169- uint4 savedpixel; // Move into per-context
167+ MCNewAutoNameRef displayname;
168+ MCNewAutoNameRef vendorname;
169+ uint4 savedpixel = 0 ; // Move into per-context
170170
171171 MCScreenDC ();
172172 virtual ~MCScreenDC ();
0 commit comments