aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-29 21:07:12 +0600
committerEugene Sandulenko2016-07-03 12:22:10 +0200
commit80412a4139d19024a9ef941004380e6bbb8d4da9 (patch)
tree6450b90d4c7902747f01ecda4d1abb42a9b03661 /graphics/VectorRenderer.h
parentee00156d5450b01508894013dc446ef3d928d781 (diff)
downloadscummvm-rg350-80412a4139d19024a9ef941004380e6bbb8d4da9.tar.gz
scummvm-rg350-80412a4139d19024a9ef941004380e6bbb8d4da9.tar.bz2
scummvm-rg350-80412a4139d19024a9ef941004380e6bbb8d4da9.zip
GUI: Add drawTabClip()
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r--graphics/VectorRenderer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index bedc8a3a8f..af275c59fd 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -218,6 +218,7 @@ 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;
+ virtual void drawTabClip(int x, int y, int r, int w, int h, Common::Rect clipping) = 0;
/**
@@ -404,10 +405,10 @@ public:
drawBeveledSquareClip(x, y, w, h, _bevel, clip);
}
- void drawCallback_TAB(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
+ void drawCallback_TAB(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawTab(x, y, stepGetRadius(step, area), w, h);
+ drawTabClip(x, y, stepGetRadius(step, area), w, h, clip);
}
void drawCallback_BITMAP(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO