Commit Graph
1475 Commits
Author SHA1 Message Date
Martin Kiewitz dc8b826f5e SCI: set default palette after initializing music driver, fixes palette getting messed up when using mt32 emulation
svn-id: r49523
2010-06-08 22:00:59 +00:00
David Turner 8b102ab7af SCI: Fix for Valgrind Warning in Palette.
svn-id: r49433
2010-06-04 20:06:59 +00:00
Filippos Karapetis 67de5b1bd3 Mass renaming of selector-related functions, and removed some defines which were just cloaking functions with a different name
- GET_SEL32 -> readSelector
- GET_SEL32V -> readSelectorValue
- PUT_SEL32 -> writeSelector
- PUT_SEL32V -> writeSelectorValue
Also, changed some selector-related function names and variables to CamelCase

svn-id: r49317
2010-05-29 23:37:15 +00:00
Filippos Karapetis 5d21ff280a Silenced some superfluous warnings in KQ5CD
svn-id: r49294
2010-05-28 16:47:30 +00:00
Martin Kiewitz 2fa8ac0575 SCI: adding another workaround for picture 376 in sq4/cd (same issue like originally found in r49216)
svn-id: r49247
2010-05-26 17:15:49 +00:00
Martin Kiewitz 1a01caece7 SCI: adding another hack to sci32 picture drawing, fixes crash in sci32 games introduced by r49216
svn-id: r49238
2010-05-26 13:24:32 +00:00
Martin Kiewitz 71436c5a86 SCI: adding comment about error() on pattern opcodes sci1.1+
svn-id: r49217
2010-05-25 18:48:50 +00:00
Martin Kiewitz aa8c6377a5 SCI: error out on pattern opcodes inside vector data when drawing pictures in sci1.1+, also adding workaround for garbage data inside picture 381 in sq4
svn-id: r49216
2010-05-25 18:45:25 +00:00
Martin Kiewitz 2502038e73 SCI: sci1.1 uses hardcoded white for picture cel data instead of the value specified in header - fixes pixel glitches in island of dr. brain title, sq4 title and qfg3 room during intro
svn-id: r49213
2010-05-25 12:53:35 +00:00
Martin Kiewitz 5317b8195d SCI: sci1.1 changed priority to 15, when adding to picture - fixes title in island of dr. brain intro
svn-id: r49212
2010-05-25 12:04:32 +00:00
Martin Kiewitz 830d17ed31 SCI: renaming MacIconBar to GfxMacIconBar
svn-id: r49202
2010-05-24 21:47:06 +00:00
Filippos Karapetis d4ae096a63 Surface is a struct, not a class
svn-id: r49201
2010-05-24 20:50:53 +00:00
Martin Kiewitz 3fa50583a0 SCI: leave console open for pic_visualize/undither commands - also don't use SciGui class for undither anymore
svn-id: r49198
2010-05-24 17:45:00 +00:00
Matthew Hoops d49fb8f42d Add support for showing the icon bar in SCI1.1 Mac.
svn-id: r49196
2010-05-24 17:21:11 +00:00
Martin Kiewitz e9db62b272 SCI: sort according to original order in kAnimate, when y and z are the same - fixes iceman half-open compartment in room 35
svn-id: r49189
2010-05-24 15:39:30 +00:00
Filippos Karapetis c874ff15a8 Cleaned up the game ID code:
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID
- Moved the code which reads the internal Sierra ID inside the resource manager
- Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code

svn-id: r49152
2010-05-23 10:28:03 +00:00
Martin Kiewitz a0db16294a SCI: adding workaround for some underwater rooms in iceman - removing visual&priority lines that appear because of non dither mode (would merge with dithered fill color combination normally)
svn-id: r49113
2010-05-20 05:48:37 +00:00
Filippos Karapetis f3892a506b - Removed the wrapper kalloc, kmem and kfree functions. Now, the associated Segment manager functions allocateHunkEntry, getHunkPointer and freeHunkEntry are used directly (which are more descriptive, anyway)
- Replaced the GET_SEGMENT macro by a method of the segment manager
- Removed the unused reference to the created hunk in allocateHunkEntry(), only the reg_t reference to it is returned now

svn-id: r49078
2010-05-18 13:05:09 +00:00
Matthew Hoops 3dda73d9a2 Add initial support for KQ6 Mac. Wrapper functions for read/writing to pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression.
svn-id: r49070
2010-05-18 04:17:58 +00:00
Martin Kiewitz 5e4868fb00 SCI: handle TAB like Ctrl-I on menu key checking, sci0 also did it that way - makes TAB work for inventory in iceman/qfg1ega
svn-id: r49044
2010-05-15 21:28:26 +00:00
Martin Kiewitz ae4da9debe SCI: setting port _menuPort, fixing crash on setFont()
svn-id: r49043
2010-05-15 15:59:46 +00:00
Martin Kiewitz 19af89a902 SCI: removed _mainPort (was unused, is unused)
svn-id: r49042
2010-05-15 15:45:05 +00:00
Martin Kiewitz f3b2627179 SCI: adding special 640x440 upscaling mode for kq6, finally hires portraits are drawn at the right position
svn-id: r49041
2010-05-15 15:16:32 +00:00
Martin Kiewitz eb2b3f352e SCI: adding upscaled hires mode 640x480 for kq6 and gk1, fixing valgrind error in GfxPortrait class, not using priority anymore when drawing hires cels (shouldnt be needed for kq6)
svn-id: r49040
2010-05-15 14:17:50 +00:00
Martin Kiewitz 59a255226f SCI: SCI_SCREEN_MASK_* now GFX_SCREEN_MASK_*, using enum - added new enum GFX_SCREEN_UPSCALED_*
svn-id: r49039
2010-05-15 08:57:13 +00:00
Filippos Karapetis 25bac3bef4 Silenced some MSVC warnings
svn-id: r49030
2010-05-14 15:21:00 +00:00
Martin Kiewitz 94f1af2b44 SCI: if no priority is set (=255) and a cel is embedded in picture vector data -> set priority to 0, fixes kq5/amiga - first scene not showing
svn-id: r49029
2010-05-14 11:49:09 +00:00
Martin Kiewitz c083ce2879 SCI: fix window, when its too large for screen (fixes sq3 crash at ending, actually caused by script bug)
svn-id: r49028
2010-05-13 22:04:53 +00:00
Martin Kiewitz 38c661bfac SCI: fix regression of r49026 - line between titlebar and actual window was overdrawn
svn-id: r49027
2010-05-13 21:29:32 +00:00
Martin Kiewitz a5f59ccdae SCI: remove hack code for shadows and implement them properly (shadow is actually part of the window, not added onto the window) - fixes especially lsl5
svn-id: r49026
2010-05-13 21:14:37 +00:00
Martin Kiewitz 070b2e14fe SCI: don't adjust new windows to _wmgrPort for oldGfxFunctions() games (till kq4 .502), fixes all window positions for those especially sq3old speech bubble windows
svn-id: r49025
2010-05-13 20:19:54 +00:00
Martin Kiewitz faffc57136 SCI: removing one assert() from view loading, cause view 260 in kq6 really contains a celCount == 0 o_O
svn-id: r49024
2010-05-13 15:49:52 +00:00
Martin Kiewitz 86cd5b71fc SCI: adding some more assert()s in view data loading for clone :D
svn-id: r49023
2010-05-13 15:39:20 +00:00
Martin Kiewitz 49d41d891b SCI: figured out weird special mac sci1.1 view decompression (currently commented out for clone2727)
svn-id: r49020
2010-05-13 12:29:55 +00:00
Martin Kiewitz 7329e815af SCI: header size within sci1.1+ views doesn't include the actual header size word, adjust accordingly (should make mac view support possible now)
svn-id: r49019
2010-05-12 21:28:38 +00:00
Martin Kiewitz 6f46d00a0a SCI: changed behaviour for kDisplay change (r49012) to use oldGfxFunctions (.502), which isn't 100% accurate (should be .566) but better than not restoring for whole SCI0LATE
svn-id: r49017
2010-05-12 20:13:48 +00:00
Martin Kiewitz b50af74703 SCI: tracked down the kDisplay change, added comment about that
svn-id: r49016
2010-05-12 19:56:50 +00:00
Martin Kiewitz 579a19fbc4 SCI: fix code that was commented out (wasn't meant to get commited that way) during cleanup r47745
svn-id: r49015
2010-05-12 19:46:24 +00:00
Martin Kiewitz a9e5f65376 SCI: added comments about r49012, change actually happened during sci0late
svn-id: r49014
2010-05-12 16:36:08 +00:00
Martin Kiewitz 9d3c8d4910 SCI: dont restore port settings for SCI0 games (fixes sq3 wrong font used when scanning for planets)
svn-id: r49012
2010-05-12 11:55:39 +00:00
Martin Kiewitz a9a56d50f0 SCI: init _sysPaletteChanged
svn-id: r49003
2010-05-11 11:44:17 +00:00
Max Horn b3e404109c Move initGraphics and initCommonGFX from to new header.
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.

svn-id: r48934
2010-05-04 11:58:12 +00:00
Martin Kiewitz c5f94872a7 SCI: kPortrait - correctly jump over offset table to land on raw lipsync data in portrait files
svn-id: r48928
2010-05-04 08:54:07 +00:00
Martin Kiewitz beba3bf8a4 SCI: animate cleanup
svn-id: r48876
2010-04-30 15:08:51 +00:00
Martin Kiewitz 7c26675ec1 SCI: fix regression from r48720, upscaled games that use view cursors crashed
svn-id: r48810
2010-04-26 21:01:05 +00:00
Martin Kiewitz 78e85ce053 SCI: fixing regression from r48771 - sierra used != before SCI1LATE and !(&) later - fixes broken windows in sq1
svn-id: r48807
2010-04-26 15:30:32 +00:00
Martin Kiewitz f334ecfa34 SCI: green buttons for sci0early implemented
svn-id: r48799
2010-04-25 20:48:59 +00:00
Martin Kiewitz 3005fffe78 SCI: draw a black line between titlebar and actual window content for SCI0, also replaced hardcoded white value (255) with screen specific value
svn-id: r48798
2010-04-25 19:49:10 +00:00
Martin Kiewitz cc4bd9bf1c SCI: changing setFont() call logic inside textedit controls to save 2 setFont() calls
svn-id: r48797
2010-04-25 16:47:14 +00:00
Martin Kiewitz 14ac9b54a0 SCI: we check for enough space, before adding pressed characters in textedit controls
svn-id: r48796
2010-04-25 16:43:16 +00:00