aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/windows.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-08 18:56:19 -0700
committerPaul Gilbert2019-08-08 20:10:33 -0700
commit832418b83752c7cf6593824762ef819f92425b0a (patch)
treed7ed62524809c85e589cf12eff7577a68a311de2 /engines/glk/frotz/windows.h
parentb2f6280e348aa595ee505c512e499f839b08e593 (diff)
downloadscummvm-rg350-832418b83752c7cf6593824762ef819f92425b0a.tar.gz
scummvm-rg350-832418b83752c7cf6593824762ef819f92425b0a.tar.bz2
scummvm-rg350-832418b83752c7cf6593824762ef819f92425b0a.zip
GLK: FROTZ: Ordering of text and graphics windows based on usage
The ScummGlk backend already had a new 'arbitrary' mode allowing for windows to be placed at any position, and on top of each other. This expands on this by ensuring that the background window, which is used for drawing graphics on, appears behind text that gets written. Yet can still appear on top of the text (hiding it) when title screen graphics are being shown
Diffstat (limited to 'engines/glk/frotz/windows.h')
-rw-r--r--engines/glk/frotz/windows.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/glk/frotz/windows.h b/engines/glk/frotz/windows.h
index 785fb10d8f..d55c928a30 100644
--- a/engines/glk/frotz/windows.h
+++ b/engines/glk/frotz/windows.h
@@ -206,7 +206,7 @@ public:
/**
* Draw an image
*/
- bool imageDraw(uint image, int val1, int val2);
+ bool imageDraw(uint image, ImageAlign align, int val);
/**
* Draw a scaled image
@@ -265,6 +265,11 @@ public:
assert(_windows[_cwin]._win);
return _windows[_cwin]._win;
}
+
+ /**
+ * Places any text windows in front of the background in V6 games
+ */
+ void showTextWindows();
};
} // End of namespace Frotz