Applied patch [ 588140 ] User Scaling of Rotated Text on wxGTK
authorJulian Smart <julian@anthemion.co.uk>
Thu, 8 Aug 2002 10:00:50 +0000 (10:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 8 Aug 2002 10:00:50 +0000 (10:00 +0000)
commita57a1fb7e07a901a77d00932b6cae8ce4ab55c2e
treec1c9d258b04e2e1caa7a03c84d509a54adfe2a31
parent5b222f1c9e0acb63c781675555c76f6129316eb1
Applied patch [ 588140 ] User Scaling of Rotated Text on wxGTK

The effect of wxDC::SetUserScale() on
wxDC::DrawRotatedText() is to scale the text **twice**.
The code is in src/gtk/dcclient.cpp

The first scaling operation occurs when choosing the
GTK font size (as happens for wxDC::DrawText()). The
rotated text is scaled a second time when blitting the
rotated text bitmap to the DC, in the functions
XLOG2DEV(x + dstX) and YLOG2DEV(y + dstY).

The supplied patch moves the rotated bitmap co-ords
(dstX, dstY) outside of the LOG2DEV functions.

bryan cole (bryancole)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/dcclient.cpp
src/gtk1/dcclient.cpp