aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorStuart George2007-11-28 23:42:08 +0000
committerStuart George2007-11-28 23:42:08 +0000
commit6cf80bbe863ee2421cefb1c27097999c3cfd1b7e (patch)
tree2ab29cab9b5f9c2489da7a470793fe0444074458 /engines/agi
parenta556368c9942cfb8e43727ac06d73afefad6ccdc (diff)
downloadscummvm-rg350-6cf80bbe863ee2421cefb1c27097999c3cfd1b7e.tar.gz
scummvm-rg350-6cf80bbe863ee2421cefb1c27097999c3cfd1b7e.tar.bz2
scummvm-rg350-6cf80bbe863ee2421cefb1c27097999c3cfd1b7e.zip
Fixes Mickey and Gold rush. Not the cleanest fix but tested and works
svn-id: r29658
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/picture.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 09dbefa7a4..a6eb52b079 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -341,9 +341,9 @@ void PictureMgr::plotPattern(int x, int y) {
static const uint8 circle_list[] = {0, 1, 4, 9, 16, 25, 37, 50};
- static const uint16 circle_data[] =
+ static uint16 circle_data[] =
{0x8000,
- 0x0000, 0xE000, 0x0000,
+ 0xE000, 0xE000, 0xE000,
0x7000, 0xF800, 0x0F800, 0x0F800, 0x7000,
0x3800, 0x7C00, 0x0FE00, 0x0FE00, 0x0FE00, 0x7C00, 0x3800,
0x1C00, 0x7F00, 0x0FF80, 0x0FF80, 0x0FF80, 0x0FF80, 0x0FF80, 0x7F00, 0x1C00,
@@ -369,6 +369,13 @@ void PictureMgr::plotPattern(int x, int y) {
circle_ptr = &circle_data[circle_list[pen_size]];
+ // SGEORGE : Fix v3 picture data for drawing circles. Manifests in goldrush
+ if(_pictureVersion == 3)
+ {
+ circle_data[1] = 0;
+ circle_data[3] = 0;
+ }
+
// setup the X position
// = pen_x - pen.size/2