aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Lingua2014-01-18 02:10:18 -0500
committerMax Lingua2014-01-18 13:50:19 -0500
commitd211d579a2666f39e9af79b2f4d39e289167e948 (patch)
tree7fbc588931c410b932eeafda6b84686e8aa2ae17
parent61aaf9bafbc86fa26ab377815c62cdcd3332a925 (diff)
downloadscummvm-rg350-d211d579a2666f39e9af79b2f4d39e289167e948.tar.gz
scummvm-rg350-d211d579a2666f39e9af79b2f4d39e289167e948.tar.bz2
scummvm-rg350-d211d579a2666f39e9af79b2f4d39e289167e948.zip
PS2: do not assume _tvMode and _gfxMode are init 0
-rw-r--r--backends/platform/ps2/Gs2dScreen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp
index e2bda3c89c..4d4143e860 100644
--- a/backends/platform/ps2/Gs2dScreen.cpp
+++ b/backends/platform/ps2/Gs2dScreen.cpp
@@ -164,6 +164,9 @@ Gs2dScreen::Gs2dScreen(uint16 width, uint16 height) {
EnableIntc(INT_VBLANK_END);
EnableDmac(2);
+ _tvMode = 0; // force detection
+ _gfxMode = 0;
+
_width = width;
_height = height;
_pitch = (width + 127) & ~127;