Preparation of more correct support for state stack.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-06-17 13:20:45 +00:00
parent 12f043c1e2
commit 2734243aca
2 changed files with 22 additions and 4 deletions
+7 -1
View File
@@ -51,6 +51,9 @@ class DrawData {
DrawData(const DrawData& from);
virtual ~DrawData();
// NOTE: this operator will not make a 1:1 copy, it is used
// for the state stack and therefor origin and scale are reset
// to B_ORIGIN and 1.0.
DrawData& operator=(const DrawData& from);
// coordinate transformation
@@ -155,13 +158,16 @@ class DrawData {
float fPenSize;
ServerFont fFont;
// TODO: Remove, see above
bool fFontAntiAliasing;
escapement_delta fEscapementDelta;
//
cap_mode fLineCapMode;
join_mode fLineJoinMode;
float fMiterLimit;
// "internal", used to calculate the size
// of the font (again) when the scale changes
float fUnscaledFontSize;
};