X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6e9293af3806a86f9b4fbf55b81aa7fc623cf5d..caddf9b41055eb11b13143361640dc733593b0a2:/src/gtk/bitmap.cpp diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index e8009a37ed..eb638d4944 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -10,7 +10,9 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/defs.h" +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif #include "wx/bitmap.h" #include "wx/palette.h" @@ -18,7 +20,6 @@ #include "wx/filefn.h" #include "wx/image.h" #include "wx/dcmemory.h" -#include "wx/app.h" #include "wx/rawbmp.h" // need this to get gdk_image_new_bitmap() @@ -346,7 +347,7 @@ bool wxBitmap::CreateFromXpm( const char **bits ) M_BMPDATA->m_mask->m_bitmap = mask; } - gdk_window_get_size( M_BMPDATA->m_pixmap, &(M_BMPDATA->m_width), &(M_BMPDATA->m_height) ); + gdk_drawable_get_size( M_BMPDATA->m_pixmap, &(M_BMPDATA->m_width), &(M_BMPDATA->m_height) ); M_BMPDATA->m_bpp = visual->depth; // Can we get a different depth from create_from_xpm_d() ? @@ -1339,7 +1340,7 @@ bool wxBitmap::LoadFile( const wxString &name, wxBitmapType type ) M_BMPDATA->m_mask->m_bitmap = mask; } - gdk_window_get_size( M_BMPDATA->m_pixmap, &(M_BMPDATA->m_width), &(M_BMPDATA->m_height) ); + gdk_drawable_get_size( M_BMPDATA->m_pixmap, &(M_BMPDATA->m_width), &(M_BMPDATA->m_height) ); M_BMPDATA->m_bpp = visual->depth; }