]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/bitmap.cpp
[wxTLW-GTK] Don't connect to the configure_event twice. This caused double wxMoveEven...
[wxWidgets.git] / src / gtk / bitmap.cpp
index 28c472572b8da94257959d8cc2a3ac05880f9bf9..88230c8a35ce94785cf16e954c5cdae29b9b2574 100644 (file)
@@ -23,9 +23,9 @@
 #include "wx/image.h"
 #include "wx/dcmemory.h"
 #include "wx/app.h"
-#include "wx/rawbmp.h"
 
 #ifdef __WXGTK20__
+#include "wx/rawbmp.h"
     // need this to get gdk_image_new_bitmap()
     #define GDK_ENABLE_BROKEN
 #endif
@@ -474,7 +474,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight,
                     if (!pixval)
                     {
                         char bit=1;
-                        char shift = bit << w % 8;
+                        char shift = bit << (w % 8);
                         outbyte |= shift;
                     }
 
@@ -537,7 +537,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight,
                     if (pixval)
                     {
                         char bit=1;
-                        char shift = bit << w % 8;
+                        char shift = bit << (w % 8);
                         outbyte |= shift;
                     }