aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-29 21:16:16 +0600
committerEugene Sandulenko2016-07-03 12:22:41 +0200
commita39a6533c466e8de48eb367ffe78a162b069de54 (patch)
tree92c52bdce6814c7aaa133e46df15e1b031124ebd
parent0dcd29e998e29b8a056493bf95adf98b9de5aecf (diff)
downloadscummvm-rg350-a39a6533c466e8de48eb367ffe78a162b069de54.tar.gz
scummvm-rg350-a39a6533c466e8de48eb367ffe78a162b069de54.tar.bz2
scummvm-rg350-a39a6533c466e8de48eb367ffe78a162b069de54.zip
GUI: Add drawCrossClip()
-rw-r--r--graphics/VectorRenderer.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index 9346ce63d2..1ec28d7e51 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -229,6 +229,11 @@ public:
drawLine(x + w, y, x, y + h);
}
+ virtual void drawCrossClip(int x, int y, int w, int h, Common::Rect clipping) {
+ drawLineClip(x, y, x + w, y + w, clipping);
+ drawLineClip(x + w, y, x, y + h, clipping);
+ }
+
/**
* Set the active foreground painting color for the renderer.
* All the foreground drawing from then on will be done with that color, unless
@@ -383,7 +388,7 @@ public:
drawLineClip(x, y, x + w, y + w, clip);
}
- void drawCallback_ROUNDSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
+ void drawCallback_ROUNDSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
drawRoundedSquareClip(x, y, stepGetRadius(step, area), w, h, clip);
@@ -417,10 +422,10 @@ public:
blitAlphaBitmap(step.blitSrc, Common::Rect(x, y, x + w, y + h));
}
- void drawCallback_CROSS(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
+ void drawCallback_CROSS(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawCross(x, y, w, h);
+ drawCrossClip(x, y, w, h, clip);
}
void drawCallback_VOID(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) {}