mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Painter examples fix
git-svn-id: svn://ultimatepp.org/upp/trunk@892 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cbcc62bd8b
commit
68343f9e96
3 changed files with 9 additions and 8 deletions
|
|
@ -18,12 +18,12 @@ LAYOUT(CtrlLayout, 212, 384)
|
|||
ITEM(EditDoubleSpin, opacity, SetInc(0.05).Min(0).Max(1).LeftPosZ(4, 64).TopPosZ(244, 19))
|
||||
ITEM(SliderCtrl, opacity_slider, HSizePosZ(72, 4).TopPosZ(242, 24))
|
||||
ITEM(Option, painting, SetLabel(t_("Paint through Painting")).LeftPosZ(4, 128).TopPosZ(268, 20))
|
||||
ITEM(DropList, linejoin, LeftPosZ(4, 100).TopPosZ(332, 19))
|
||||
ITEM(DropList, linecap, LeftPosZ(108, 100).TopPosZ(332, 19))
|
||||
ITEM(Button, reset, SetLabel(t_("Reset")).LeftPosZ(4, 64).TopPosZ(356, 24))
|
||||
ITEM(Button, print, SetLabel(t_("Print")).LeftPosZ(72, 60).TopPosZ(356, 24))
|
||||
ITEM(Button, benchmark, SetLabel(t_("Benchmark")).LeftPosZ(136, 72).TopPosZ(356, 24))
|
||||
ITEM(Switch, quality, SetLabel(t_("NoAA\nAntialiased\nSubpixel")).LeftPosZ(4, 204).TopPosZ(312, 16))
|
||||
ITEM(DropList, linejoin, LeftPosZ(4, 100).BottomPosZ(33, 19))
|
||||
ITEM(DropList, linecap, RightPosZ(4, 100).BottomPosZ(33, 19))
|
||||
ITEM(Button, reset, SetLabel(t_("Reset")).LeftPosZ(4, 64).BottomPosZ(4, 24))
|
||||
ITEM(Button, print, SetLabel(t_("Print")).HSizePosZ(72, 80).BottomPosZ(4, 24))
|
||||
ITEM(Button, benchmark, SetLabel(t_("Benchmark")).RightPosZ(4, 72).BottomPosZ(4, 24))
|
||||
ITEM(Switch, quality, SetLabel(t_("Antialiased\nNoAA\nSubpixel")).LeftPosZ(4, 204).TopPosZ(312, 16))
|
||||
ITEM(Option, transparent, SetLabel(t_("Transparent background")).LeftPosZ(4, 204).TopPosZ(288, 20))
|
||||
END_LAYOUT
|
||||
|
||||
|
|
|
|||
|
|
@ -34,5 +34,6 @@ file
|
|||
Test.iml;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
"" = "GUI",
|
||||
"" = "GUI SSE2";
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ void App::Reset()
|
|||
ctrl.rotate <<= ctrl.translate_x <<= ctrl.translate_y <<= 0;
|
||||
ctrl.scale <<= ctrl.scale_x <<= ctrl.opacity <<= 1.0;
|
||||
ctrl.painting = false;
|
||||
ctrl.quality = QUALITY_ANTIALIASED;
|
||||
ctrl.quality = MODE_ANTIALIASED;
|
||||
ctrl.linejoin <<= LINEJOIN_MITER;
|
||||
ctrl.linecap <<= LINECAP_BUTT;
|
||||
ToSlider();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue