aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-29 21:12:44 +0600
committerEugene Sandulenko2016-07-03 12:22:26 +0200
commit0dcd29e998e29b8a056493bf95adf98b9de5aecf (patch)
tree66a98115297404bbdb2b7397643f6b90fb8ea863 /graphics/VectorRenderer.h
parent80412a4139d19024a9ef941004380e6bbb8d4da9 (diff)
downloadscummvm-rg350-0dcd29e998e29b8a056493bf95adf98b9de5aecf.tar.gz
scummvm-rg350-0dcd29e998e29b8a056493bf95adf98b9de5aecf.tar.bz2
scummvm-rg350-0dcd29e998e29b8a056493bf95adf98b9de5aecf.zip
GUI: Fix drawRoundedSquareClip()
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r--graphics/VectorRenderer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index af275c59fd..9346ce63d2 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -176,7 +176,7 @@ public:
* @param r Radius of the corners.
*/
virtual void drawRoundedSquare(int x, int y, int r, int w, int h) = 0;
- virtual void drawRoundedSquareClip(int x, int y, int r, int w, int h, int cx, int cy, int cw, int ch) = 0;
+ virtual void drawRoundedSquareClip(int x, int y, int r, int w, int h, Common::Rect clipping) = 0;
/**
* Draws a triangle starting at (x,y) with the given base and height.
@@ -386,7 +386,7 @@ public:
void drawCallback_ROUNDSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawRoundedSquareClip(x, y, stepGetRadius(step, area), w, h, clip.left, clip.top, clip.right-clip.left, clip.bottom-clip.top);
+ drawRoundedSquareClip(x, y, stepGetRadius(step, area), w, h, clip);
}
void drawCallback_FILLSURFACE(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO