aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-29 19:47:32 +0600
committerEugene Sandulenko2016-07-03 12:21:55 +0200
commitee00156d5450b01508894013dc446ef3d928d781 (patch)
tree8d825a3f4a3eaee37de997941893ff0b179f4829 /graphics/VectorRenderer.h
parent05383532b7da1a2ed669d03ee9ca8aa9e6bdcdf1 (diff)
downloadscummvm-rg350-ee00156d5450b01508894013dc446ef3d928d781.tar.gz
scummvm-rg350-ee00156d5450b01508894013dc446ef3d928d781.tar.bz2
scummvm-rg350-ee00156d5450b01508894013dc446ef3d928d781.zip
GUI: Add drawBeveledSquareClip()
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 d180d87217..bedc8a3a8f 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -204,6 +204,7 @@ public:
* @param bevel Amount of bevel. Must be positive.
*/
virtual void drawBeveledSquare(int x, int y, int w, int h, int bevel) = 0;
+ virtual void drawBeveledSquareClip(int x, int y, int w, int h, int bevel, Common::Rect clipping) = 0;
/**
* Draws a tab-like shape, specially thought for the Tab widget.
@@ -397,10 +398,10 @@ public:
drawTriangleClip(x, y, w, h, (TriangleOrientation)step.extraData, clip);
}
- void drawCallback_BEVELSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
+ void drawCallback_BEVELSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawBeveledSquare(x, y, w, h, _bevel);
+ drawBeveledSquareClip(x, y, w, h, _bevel, clip);
}
void drawCallback_TAB(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO