Tons of misc. GFX fixes.

svn-id: r33911
This commit is contained in:
Vicent Marti 2008-08-15 19:10:37 +00:00
parent 9ae82653ef
commit 7c213ab110
16 changed files with 91 additions and 31 deletions

View file

@ -211,6 +211,15 @@ public:
* @param r Radius of the corners of the tab (0 for squared tabs).
*/
virtual void drawTab(int x, int y, int r, int w, int h) = 0;
/**
* Simple helper function to draw a cross.
*/
virtual void drawCross(int x, int y, int w, int h) {
drawLine(x, y, x + w, y + w);
drawLine(x + w, y, x, y + h);
}
/**
* Gets the pixel pitch for the current drawing surface.
@ -419,6 +428,12 @@ public:
stepGetPositions(step, area, x, y, w, h);
blitAlphaBitmap(step.blitSrc, Common::Rect(x, y, x + w, y + h));
}
void drawCallback_CROSS(const Common::Rect &area, const DrawStep &step) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
drawCross(x, y, w, h);
}
void drawCallback_VOID(const Common::Rect &area, const DrawStep &step) {}