mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
SDraw:: DrawEllipseOp, Core: NOI18N flag
git-svn-id: svn://ultimatepp.org/upp/trunk@6769 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
60e4074372
commit
ea59142b8c
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#ifndef flagNOI18N
|
||||
|
||||
#ifndef _Core_lng_h_
|
||||
#define _Core_lng_h_
|
||||
|
||||
|
|
@ -298,3 +300,5 @@ INITBLOCK_(COMBINE3(LNG_MODULE, LNG_VERB, LNG_VERA))
|
|||
#undef T_
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
@ -14,7 +14,15 @@ void SDraw::DrawArcOp(const Rect& rc, Point start, Point end, int width, Color c
|
|||
|
||||
void SDraw::DrawEllipseOp(const Rect& r, Color color, int pen, Color pencolor)
|
||||
{
|
||||
// TODO
|
||||
if(!IsNull(color)) {
|
||||
docolor = color;
|
||||
Polygon().Ellipse(r).Fill();
|
||||
}
|
||||
if(!IsNull(pen) && !IsNull(pencolor)) {
|
||||
docolor = pencolor;
|
||||
Width(pen);
|
||||
Ellipse(r);
|
||||
}
|
||||
}
|
||||
|
||||
void SDraw::DrawLineOp(int x1, int y1, int x2, int y2, int width, Color color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue