aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r--engines/sci/engine/kgraphics.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 52d9971f2f..5ec8b3f323 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -1625,12 +1625,10 @@ reg_t kScrollWindow(EngineState *s, int argc, reg_t *argv) {
}
reg_t kSetFontRes(EngineState *s, int argc, reg_t *argv) {
- // This defines the resolution that the fonts are supposed to be displayed in.
- // This is used in early SCI2.1 games, but doesn't really have a purpose
- // except to notify that GK1 Mac is using higher resolution fonts and should
- // not be scaled. Saying that the GK2 demo and KQ7 v1.4 have 640x480 fonts
- // is pretty much a no-brainer. You can see why this was removed for SCI2.1
- // middle. This is not called in the low-res SCI2.1 early games either.
+ // TODO: This defines the resolution that the fonts are supposed to be displayed
+ // in. Currently, this is only used for showing high-res fonts in GK1 Mac, but
+ // should be extended to handle other font resolutions such as those
+
int xResolution = argv[0].toUint16();
//int yResolution = argv[1].toUint16();
@@ -1640,6 +1638,20 @@ reg_t kSetFontRes(EngineState *s, int argc, reg_t *argv) {
return s->r_acc;
}
+reg_t kFont(EngineState *s, int argc, reg_t *argv) {
+ // Handle font settings for SCI2.1
+
+ switch (argv[0].toUint16()) {
+ case 1:
+ // Set font resolution
+ return kSetFontRes(s, argc - 1, argv + 1);
+ default:
+ warning("kFont: unknown subop %d", argv[0].toUint16());
+ }
+
+ return s->r_acc;
+}
+
#endif
} // End of namespace Sci