[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 1135
Date : Fri May 19 17:20:33 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/gdrawcon.cpp
Fixed gdrawcontext cleanup
Diff:
Index: Trunk/XaraLX/wxOil/gdrawcon.cpp
===================================================================
--- Trunk/XaraLX/wxOil/gdrawcon.cpp (revision 1134)
+++ Trunk/XaraLX/wxOil/gdrawcon.cpp (revision 1135)
@@ -148,11 +148,15 @@
BOOL GDrawContext::SetDefaultBitmapParameters()
{
- BOOL ok=
- SetBias(3, 0.0) &&
- SetGain(3, 0.0) &&
- SetInputRange(3, 0x00, 0xff) &&
- SetOutputRange(3, 0x00, 0xff) &&
+ BOOL ok= TRUE;
+ for (INT32 i=0; i<=3; i++) ok &=
+ SetBias(i, 0.0) &&
+ SetGain(i, 0.0) &&
+ SetInputRange(i, 0x00, 0xff) &&
+ SetOutputRange(i, 0x00, 0xff) &&
+ TRUE;
+
+ ok &=
SetBrightness(0.0) &&
SetContone(0) &&
SetContrast(0.0) &&
Xara