diff options
author | Bendegúz Nagy | 2016-08-04 12:18:39 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 2e2732df3990e88b697021239e7a531c9dad8a54 (patch) | |
tree | 386f7886f1f49e1418aa5ce4fa2b5cf47372789d /engines/dm/gfx.h | |
parent | 79c0a0adc99a53df663b469be8a05fa6825383c1 (diff) | |
download | scummvm-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.h | 3 |
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++; |