]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor corrections to native renderer. I also corrected
authorRobert Roebling <robert@roebling.de>
Tue, 25 Apr 2006 10:47:29 +0000 (10:47 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 25 Apr 2006 10:47:29 +0000 (10:47 +0000)
    the header button renderer as per MSW, this might break
    other code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/renderer.cpp

index 53ab9e764bb6d50857a3486c010ffc5297c980a7..e5e20f03b13cbc2a9b5ea83491e83d2826090d2f 100644 (file)
@@ -197,7 +197,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
         NULL,
         button,
         "button",
-        dc.XLOG2DEV(rect.x) -1, rect.y -1, rect.width +2, rect.height +2
+        dc.XLOG2DEV(rect.x), rect.y, rect.width, rect.height
     );
 }
 
@@ -463,7 +463,9 @@ wxRendererGTK::DrawCheckButton(wxWindow *win,
         NULL,
         button,
         "cellcheck",
-        rect.x, rect.y, 13, 13
+        dc.LogicalToDeviceX(rect.x)+2, 
+        dc.LogicalToDeviceY(rect.y)+3, 
+        13, 13
     );
 }