SDraw:: DrawEllipseOp, Core: NOI18N flag

git-svn-id: svn://ultimatepp.org/upp/trunk@6769 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-01-13 09:53:50 +00:00
parent 60e4074372
commit ea59142b8c
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -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)