aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/charset.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-03-08 08:45:21 +0000
committerTravis Howell2009-03-08 08:45:21 +0000
commit2620d6836c001f2f295cb6efd6beab78f5a3c50f (patch)
tree81d5055b74abfc7b0be105bee13b39e6505fce91 /engines/agos/charset.cpp
parent7bfab75a0814d0655a2504bf4c461df0000da0e4 (diff)
downloadscummvm-rg350-2620d6836c001f2f295cb6efd6beab78f5a3c50f.tar.gz
scummvm-rg350-2620d6836c001f2f295cb6efd6beab78f5a3c50f.tar.bz2
scummvm-rg350-2620d6836c001f2f295cb6efd6beab78f5a3c50f.zip
Add initial support for Personal Nightmare.
Thanks to dreammaster for file decompression and icon decoding code. NOTE: setjmp/longjmp code will require conversion for portability. svn-id: r39216
Diffstat (limited to 'engines/agos/charset.cpp')
-rw-r--r--engines/agos/charset.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp
index 8acfecb1ce..3f38e17ea1 100644
--- a/engines/agos/charset.cpp
+++ b/engines/agos/charset.cpp
@@ -610,13 +610,21 @@ void AGOSEngine::windowNewLine(WindowBlock *window) {
window->textColumnOffset = (getGameType() == GType_ELVIRA2) ? 4 : 0;
window->textLength = 0;
- if (window->textRow == window->height) {
- if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 ||
- getGameType() == GType_WW) {
+ if (getGameType() == GType_PN) {
+ window->textRow++;
+ if (window->textRow == window->height) {
windowScroll(window);
+ window->textRow--;
}
} else {
- window->textRow++;
+ if (window->textRow == window->height) {
+ if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 ||
+ getGameType() == GType_WW) {
+ windowScroll(window);
+ }
+ } else {
+ window->textRow++;
+ }
}
}