aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-29 19:25:57 +0600
committerEugene Sandulenko2016-07-03 12:21:40 +0200
commit05383532b7da1a2ed669d03ee9ca8aa9e6bdcdf1 (patch)
tree16affdf31b26c8fb816e9c8267a51d59803597d0 /graphics/VectorRenderer.h
parent2231de040f37502031686edf62f501a02ae6d1c4 (diff)
downloadscummvm-rg350-05383532b7da1a2ed669d03ee9ca8aa9e6bdcdf1.tar.gz
scummvm-rg350-05383532b7da1a2ed669d03ee9ca8aa9e6bdcdf1.tar.bz2
scummvm-rg350-05383532b7da1a2ed669d03ee9ca8aa9e6bdcdf1.zip
GUI: Add drawLineClip()
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 38185f1a7b..d180d87217 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -142,6 +142,7 @@ public:
* @param y2 Vertical (Y) coordinate for the line end
*/
virtual void drawLine(int x1, int y1, int x2, int y2) = 0;
+ virtual void drawLineClip(int x1, int y1, int x2, int y2, Common::Rect clipping) = 0;
/**
* Draws a circle centered at (x,y) with radius r.
@@ -374,10 +375,10 @@ public:
drawSquareClip(x, y, w, h, clip);
}
- void drawCallback_LINE(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
+ void drawCallback_LINE(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawLine(x, y, x + w, y + w);
+ drawLineClip(x, y, x + w, y + w, clip);
}
void drawCallback_ROUNDSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO