aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/celobj32.h
diff options
context:
space:
mode:
authorColin Snover2016-06-27 20:48:01 -0500
committerColin Snover2016-06-30 14:04:56 -0500
commit29f7a66af40acdc348e28d5c681f43e1f33bf4de (patch)
tree284a871ed8648de96075aa2723b39eb65bb7c960 /engines/sci/graphics/celobj32.h
parentd2f598cea677fc03b5987fb9f9d9ac41faa96ded (diff)
downloadscummvm-rg350-29f7a66af40acdc348e28d5c681f43e1f33bf4de.tar.gz
scummvm-rg350-29f7a66af40acdc348e28d5c681f43e1f33bf4de.tar.bz2
scummvm-rg350-29f7a66af40acdc348e28d5c681f43e1f33bf4de.zip
SCI32: Add low resolution constants
In a few places in the graphics system, fixed low-resolution values are used instead of the game script resolution.
Diffstat (limited to 'engines/sci/graphics/celobj32.h')
-rw-r--r--engines/sci/graphics/celobj32.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h
index 6e401b3df4..e405592b5f 100644
--- a/engines/sci/graphics/celobj32.h
+++ b/engines/sci/graphics/celobj32.h
@@ -31,6 +31,20 @@
namespace Sci {
typedef Common::Rational Ratio;
+// SCI32 has four different coordinate systems:
+// 1. low resolution, 2. game/script resolution,
+// 3. text/bitmap resolution, 4. screen resolution
+//
+// In CelObj, these values are used when there is
+// no baked in resolution of cels.
+//
+// In ScreenItem, it is used when deciding which
+// path to take to calculate dimensions.
+enum {
+ kLowResX = 320,
+ kLowResY = 200
+};
+
enum CelType {
kCelTypeView = 0,
kCelTypePic = 1,