[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1560
Date : Wed Jul 26 17:41:37 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/bmapprev.cpp
Transparent pngs (NOT alpha channel) break, palettised exports. So disable them for the moment
Diff:
Index: Trunk/XaraLX/Kernel/bmapprev.cpp
===================================================================
--- Trunk/XaraLX/Kernel/bmapprev.cpp (revision 1559)
+++ Trunk/XaraLX/Kernel/bmapprev.cpp (revision 1560)
@@ -3901,10 +3901,20 @@
SetStringGadgetValue(_R(IDC_OPTIONSTAB_CHECK2), _R(IDS_OPTIONS_TAB_TRANSPARENT));
SetStringGadgetValue(_R(IDC_OPTIONSTAB_CHECK3), _R(IDS_OPTIONS_TAB_LAYERFILES));
HideGadget(_R(IDC_OPTIONSTAB_CHECK1), FALSE);
+PORTNOTE("other","Transparent background just break palettised exports")
+#if defined(ENABLE_TRANSPARENT)
HideGadget(_R(IDC_OPTIONSTAB_CHECK2), FALSE);
+#else
+ HideGadget(_R(IDC_OPTIONSTAB_CHECK2), TRUE);
+#endif
HideGadget(_R(IDC_OPTIONSTAB_CHECK3), FALSE);
SetLongGadgetValue(_R(IDC_OPTIONSTAB_CHECK1), ((MaskedFilterExportOptions*) m_pExportOptions)->WantInterlaced());
+#if defined(ENABLE_TRANSPARENT)
SetLongGadgetValue(_R(IDC_OPTIONSTAB_CHECK2), m_pExportOptions->IsBackgroundTransparent());
+#else
+ m_pExportOptions->SetBackgroundTransparency( FALSE );
+ SetLongGadgetValue(_R(IDC_OPTIONSTAB_CHECK2), FALSE);
+#endif
SetLongGadgetValue(_R(IDC_OPTIONSTAB_CHECK3), m_pExportOptions->GetSeparateLayerFiles());
}
Xara