]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
fixed problem in mimetype database and put a temp. fix for font tags
[wxWidgets.git] / src / motif / window.cpp
index 5ac4f203aa01724075f9ea6a326d8e0592368a5c..cebde640e5b2f0278520b42de27c373d7c4d8b72 100644 (file)
@@ -1840,22 +1840,14 @@ static void wxCanvasRepaintProc(Widget drawingArea,
     {
     case Expose:
         {
+            win->AddUpdateRect(event->xexpose.x, event->xexpose.y,
+                               event->xexpose.width, event->xexpose.height);
+            
             if (event -> xexpose.count == 0)
             {
-#if 0
-                wxPaintEvent event(win->GetId());
-                event.SetEventObject(win);
-                win->GetEventHandler()->ProcessEvent(event);
-#endif // 0
-
                 win->DoPaint();
                 win->ClearUpdateRects();
             }
-            else
-            {
-                win->AddUpdateRect(event->xexpose.x, event->xexpose.y,
-                                   event->xexpose.width, event->xexpose.height);
-            }
             break;
         }
     }