mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
drawing ellipses antialiased with Cairo
This commit is contained in:
@@ -636,14 +636,17 @@ void cView::DoDrawEllipse(int num, cTemplateFunction *func, int x0, int y0) {
|
||||
y += y0;
|
||||
int w = func->GetNumericParameter(ptWidth);
|
||||
int h = func->GetNumericParameter(ptHeight);
|
||||
cRect size(x, y, w, h);
|
||||
tColor clr = func->GetColorParameter(ptColor);
|
||||
int quadrant = func->GetNumericParameter(ptQuadrant);
|
||||
if (quadrant < -4 || quadrant > 8) {
|
||||
esyslog("skindesigner: wrong quadrant %d for drawellipse, allowed values are from -4 to 8", quadrant);
|
||||
quadrant = 0;
|
||||
}
|
||||
DrawEllipse(num, size, clr, quadrant);
|
||||
cImage *ellipse = imgCache->GetEllipse(func->GetId(), w, h, clr, quadrant);
|
||||
if (ellipse) {
|
||||
const cPoint point(x, y);
|
||||
DrawImage(num, point, *ellipse);
|
||||
}
|
||||
}
|
||||
|
||||
void cView::DoDrawSlope(int num, cTemplateFunction *func, int x0, int y0) {
|
||||
|
||||
Reference in New Issue
Block a user