Commit graph

242 commits

Author SHA1 Message Date
Martin Kiewitz
9bea286e49 SCI: cache Planes for sci32
svn-id: r51249
2010-07-24 16:47:12 +00:00
Martin Kiewitz
d643928d0d SCI: delete hidden planes in kFrameout
svn-id: r51246
2010-07-24 15:25:29 +00:00
Martin Kiewitz
9672c757d6 SCI: adding 1 to planeRect bottom/right
svn-id: r51241
2010-07-24 10:12:56 +00:00
Martin Kiewitz
0848e3dd93 SCI: doing res correction on text as well
"fixes" lsl6 abort intro dialog

svn-id: r51159
2010-07-22 19:30:20 +00:00
Martin Kiewitz
49c41ab166 SCI: some changes to kFrameout for sci32
cels are now clipped correctly against plane boundaries, nsRect is also set now, fixes some hotspot issues and larry disappearing when going to the left/right of screen

svn-id: r51158
2010-07-22 19:20:26 +00:00
Matthew Hoops
c1ad4a1110 Use new[]/delete[] instead of malloc/free
svn-id: r51144
2010-07-22 14:33:14 +00:00
Matthew Hoops
ede85a539a Silence gcc warning
svn-id: r51143
2010-07-22 14:29:00 +00:00
Martin Kiewitz
a01152a3ba SCI: some more work on priority sci32
svn-id: r51139
2010-07-22 12:36:58 +00:00
Martin Kiewitz
ed1ae39e46 SCI: removing priority hack for gk1hires
also fixing base picture drawing

svn-id: r51137
2010-07-22 11:11:31 +00:00
Martin Kiewitz
15ef4b23a0 SCI: some work on priority in sci32
svn-id: r51134
2010-07-22 10:24:08 +00:00
Martin Kiewitz
e1bc084547 SCI: fixing hires background pictures sci2.1
svn-id: r51086
2010-07-21 13:13:55 +00:00
Filippos Karapetis
217af391cd SCI: Removed a chatty (and unneeded) warning
svn-id: r50860
2010-07-14 00:52:21 +00:00
Filippos Karapetis
91a414dbc9 Extended the SCI2 text drawing hack for SCI2.1 too, and added font caching
svn-id: r50592
2010-07-02 08:55:12 +00:00
Martin Kiewitz
4e999c8295 SCI: support for hires views in gk1
svn-id: r50533
2010-06-30 14:26:47 +00:00
Max Horn
9f48a37671 SCI: Add const qualifiers to many GfxView methods and their return values.
This helps to ensure proper data encapsulation.
Also reformatted some overlong comments to 80 chars per line, and
fixed some other code formatting issues.

svn-id: r50421
2010-06-28 11:20:14 +00:00
Filippos Karapetis
0a102981f0 Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
svn-id: r50183
2010-06-23 15:23:37 +00:00
Martin Kiewitz
4a83b2c5f6 SCI: properly implement kPalVary functionality within kDrawPic and transitions, so pharkas finally works w/o palette corruption
svn-id: r50099
2010-06-20 20:52:31 +00:00
Martin Kiewitz
66b9eaac34 SCI: adding timestamp update for frameout, fixes gk1 windows main menu
svn-id: r50094
2010-06-20 20:09:07 +00:00
Matthew Hoops
ff785325ad Sort planes in kFrameOut by priority and keep plane/item priority separate as they represent two different things. Fixes various SCI32 graphical glitches. Most (all?) remaining glitches are because we don't yet handle kSignalFixedPriority.
svn-id: r50087
2010-06-20 17:17:46 +00:00
Martin Kiewitz
8fcb14d235 SCI: adding kPalVary update call to kFrameout - it's getting morning now in gabriel knight 1
svn-id: r50083
2010-06-20 16:36:34 +00:00
Martin Kiewitz
fea248ae2f SCI: make umlauts work in kFrameout for sci32
svn-id: r49890
2010-06-15 20:23:25 +00:00
Matthew Hoops
303c7b0a8d Ignore and remove invalid plane and item objects in kFrameout. Fixes loading in-game in GK1.
svn-id: r49663
2010-06-14 16:58:15 +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
Martin Kiewitz
da2027da36 SCI: change textedit control to cast to unsigned char to fix cursor position when multilingual chars are used. Also make getFontHeight() private inside GfxFontFromResource class, remove it in all the other classes
svn-id: r48689
2010-04-17 15:16:40 +00:00
Martin Kiewitz
cd4812dfd9 SCI: support for kanji (sjis), minor centering issue left
svn-id: r48674
2010-04-16 18:23:50 +00:00
Max Horn
ac4d325e0d SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
2010-02-13 17:42:49 +00:00
Martin Kiewitz
4cae2b13e2 SCI: added plane coordinate adjustment code for sci32 when drawing pictures, put everything into GfxCoordAdjuster
svn-id: r47939
2010-02-06 19:35:51 +00:00
Filippos Karapetis
788f375703 Added a sanity check for kListAt and made the hack for displaying text work in SCI2 only
svn-id: r47931
2010-02-06 16:12:19 +00:00
Max Horn
f86618f92b SCI: Add a 'SELECTOR' macro
svn-id: r47918
2010-02-05 22:55:18 +00:00
Martin Kiewitz
c78a49f563 SCI: initializing _highPlanePri inside GfxFrameout
svn-id: r47910
2010-02-05 19:33:39 +00:00
Martin Kiewitz
e7cffa90b2 SCI: frameout sci32 stuff now gets called directly w/o SciGui/32
svn-id: r47907
2010-02-05 16:03:14 +00:00
Martin Kiewitz
51b608d794 SCI: renamed class Font to GfxFont
svn-id: r47900
2010-02-05 12:30:41 +00:00
Martin Kiewitz
3ad4433adf SCI: renamed SciGuiPicture to GfxPicture
svn-id: r47899
2010-02-05 12:14:03 +00:00
Martin Kiewitz
cabd18da9e SCI: renaming class View to GfxView
svn-id: r47891
2010-02-04 22:17:58 +00:00
Martin Kiewitz
6664d26db7 SCI: adding GfxPaint32 class, adding back support for planes, minor change in GfxPaint16 (using #def instead of fixed value)
svn-id: r47880
2010-02-04 17:57:44 +00:00
Martin Kiewitz
7b0b4f5313 SCI: also adjusting bottom/right coordinate of plane rect
svn-id: r47878
2010-02-04 16:14:59 +00:00
Martin Kiewitz
751db2fcf3 SCI: added clipping inside frameout (fixes torin)
svn-id: r47877
2010-02-04 16:12:47 +00:00
Martin Kiewitz
4e090f4ede SCI: support for resX, resY inside frameout
svn-id: r47875
2010-02-04 12:07:27 +00:00
Filippos Karapetis
887ca3145e Initial implementation of text drawing for SCI2 (it's a hack for now, done the "SCI0-SCI11" way, and text splitting is wrong...)
svn-id: r47838
2010-02-03 01:36:53 +00:00
Filippos Karapetis
50e6b0283f Silenced warning
svn-id: r47817
2010-02-02 17:21:11 +00:00
Martin Kiewitz
6b26f76f70 SCI: frameout ignoring 0xFFFE for picture id as well (must be some other magic value)
svn-id: r47815
2010-02-02 16:29:14 +00:00
Martin Kiewitz
714665f9d9 SCI: some sort of priority support for sci32 (not working right, but at least the menu in gk1 now correctly shows up)
svn-id: r47814
2010-02-02 16:25:35 +00:00