projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
header includes for mac corrected
[wxWidgets.git]
/
src
/
gtk
/
dcscreen.cpp
diff --git
a/src/gtk/dcscreen.cpp
b/src/gtk/dcscreen.cpp
index 825cd2b2deacd64b2fd236c779b49d9f8645d4b9..b404333e13c64e59edbb08ce3af65bae4b27576f 100644
(file)
--- a/
src/gtk/dcscreen.cpp
+++ b/
src/gtk/dcscreen.cpp
@@
-7,10
+7,13
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if
def __GNUG__
+#if
defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcscreen.h"
#endif
#pragma implementation "dcscreen.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#include "wx/dcscreen.h"
#include "wx/window.h"
#include "wx/dcscreen.h"
#include "wx/window.h"
@@
-38,6
+41,8
@@
wxScreenDC::wxScreenDC()
m_cmap = gdk_colormap_get_system();
m_window = GDK_ROOT_PARENT();
m_cmap = gdk_colormap_get_system();
m_window = GDK_ROOT_PARENT();
+ m_isScreenDC = TRUE;
+
SetUpDC();
gdk_gc_set_subwindow( m_penGC, GDK_INCLUDE_INFERIORS );
SetUpDC();
gdk_gc_set_subwindow( m_penGC, GDK_INCLUDE_INFERIORS );
@@
-99,3
+104,7
@@
bool wxScreenDC::EndDrawingOnTop()
return TRUE;
}
return TRUE;
}
+void wxScreenDC::DoGetSize(int *width, int *height) const
+{
+ wxDisplaySize(width, height);
+}