aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/gfx.h
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-04 12:18:39 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit2e2732df3990e88b697021239e7a531c9dad8a54 (patch)
tree386f7886f1f49e1418aa5ce4fa2b5cf47372789d /engines/dm/gfx.h
parent79c0a0adc99a53df663b469be8a05fa6825383c1 (diff)
downloadscummvm-rg350-2e2732df3990e88b697021239e7a531c9dad8a54.tar.gz
scummvm-rg350-2e2732df3990e88b697021239e7a531c9dad8a54.tar.bz2
scummvm-rg350-2e2732df3990e88b697021239e7a531c9dad8a54.zip
DM: Partially fix drawing of shrunk bitmaps
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r--engines/dm/gfx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 387a73de67..4dd1694ad0 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -295,7 +295,8 @@ public:
Box(uint16 x1, uint16 x2, uint16 y1, uint16 y2) : _x1(x1), _x2(x2), _y1(y1), _y2(y2) {}
Box() {}
- explicit Box(uint16 *ptr) {
+ template <typename T>
+ explicit Box(T *ptr) {
_x1 = *ptr++;
_x2 = *ptr++;
_y1 = *ptr++;