simplify coordinate transformation code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/settings.h"
|
||||
#endif
|
||||
@@ -205,7 +204,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
NULL,
|
||||
button,
|
||||
"button",
|
||||
dc.XLOG2DEV(rect.x), rect.y, rect.width, rect.height
|
||||
dc.LogicalToDeviceX(rect.x), rect.y, rect.width, rect.height
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user