12893 Commits

Author SHA1 Message Date
Martin Kiewitz
358bfb3141 SCI/newgui: one typo in view sci1.1 fixed
svn-id: r44686
2009-10-06 07:12:09 +00:00
Martin Kiewitz
8d762cf0f0 SCI/newgui: support for amiga palette, amiga picture support, cleanup
svn-id: r44685
2009-10-06 06:50:31 +00:00
Willem Jan Palenstijn
437a7cc07c SCI: Make getBitsDataSize use the same logic as saveBits
svn-id: r44682
2009-10-05 23:00:48 +00:00
Martin Kiewitz
30596adec2 SCI/newgui: Implemented trick to get dithering going after drawing picture w/o destroying statusbar
svn-id: r44681
2009-10-05 22:42:41 +00:00
Willem Jan Palenstijn
20125b51c4 SCI: Fix error message
svn-id: r44680
2009-10-05 21:47:28 +00:00
Martin Kiewitz
64d73415ca SCI/newgui: changed the way dithering works on ega games, also default value change for kDrawStatus
svn-id: r44679
2009-10-05 21:38:51 +00:00
Martin Kiewitz
c30cdf65e7 SCI/newgui: color duplicated to upper 4 bits on EGA to remove dithering with black
svn-id: r44678
2009-10-05 20:46:19 +00:00
Martin Kiewitz
db4938fd86 SCI/newgui: SciGuiPicture - enum rename from SCI0/SCI1 to EGA/VGA
svn-id: r44677
2009-10-05 20:21:59 +00:00
Martin Kiewitz
9b416ca947 SCI/newgui: switch to SCI1 commands when being IsVGA(), fixes qfg2
svn-id: r44676
2009-10-05 20:19:07 +00:00
Martin Kiewitz
e77f997e33 SCI/newgui: EGA picture drawing is now using EGA palette
svn-id: r44675
2009-10-05 20:02:29 +00:00
Martin Kiewitz
16580e53bf SCI: kDrawStatus changed, dont call gui if no text received
svn-id: r44674
2009-10-05 19:46:38 +00:00
Martin Kiewitz
e6b1a0cb4b SCI: kDrawStatus now calls s->gui->drawStatus with NULL if no text given
svn-id: r44673
2009-10-05 19:39:47 +00:00
Filippos Karapetis
442a870123 Stop spamming of the console
svn-id: r44672
2009-10-05 19:30:17 +00:00
Filippos Karapetis
7596f535ac Fixed crash when starting games with the stable GUI
svn-id: r44671
2009-10-05 19:28:43 +00:00
Martin Kiewitz
3654cefe33 SVN/newgui: kDrawStatus implemented
svn-id: r44670
2009-10-05 19:20:52 +00:00
Martin Kiewitz
ec43c30503 SVN/newgui: renamed getScreenPalette to getSysPalette (code doesnt get the screen palette at all, but actually the current sysPalette which does not need to be active at all times
svn-id: r44669
2009-10-05 18:20:50 +00:00
Willem Jan Palenstijn
2a06f34181 SCI: Move restoreRect adjustment from DrawWindow to NewWindow
svn-id: r44668
2009-10-05 18:00:12 +00:00
Martin Kiewitz
ac9faddd17 SVN/newgui: views on sci1.1 - mirroring now possible
svn-id: r44667
2009-10-05 17:57:06 +00:00
Martin Kiewitz
ac5d71b57e SCI/newgui: duplicate the color in cels into upper 4 bits on ega so they wont get dithered with black
svn-id: r44666
2009-10-05 17:40:21 +00:00
Martin Kiewitz
d7f584166d SVN/newgui: ega cel uncompression implemented
svn-id: r44665
2009-10-05 16:51:01 +00:00
Filippos Karapetis
91a16e0c7d Moved the cursor movement code in the GUI
svn-id: r44664
2009-10-05 16:43:24 +00:00
Filippos Karapetis
4c35022f6b Lines are no longer treated as fake rectangles and are shown correctly again
svn-id: r44663
2009-10-05 13:33:26 +00:00
Filippos Karapetis
3e66ae85f6 Better naming for the palette setting functions, to disambiguate them from the existing ones
svn-id: r44662
2009-10-05 12:49:31 +00:00
Filippos Karapetis
f3d3596d54 Renamed
setCLUT() -> setPalette()
getCLUT() -> getPalette()

svn-id: r44661
2009-10-05 12:37:01 +00:00
Martin Kiewitz
7da723ab4e SCI/newgui: drawControlIcon - updates screen now
svn-id: r44660
2009-10-05 12:12:18 +00:00
Filippos Karapetis
4d699301c7 Minimize unnecessary calls to updateScreen() in the new GUI. This improves drawing speed dramatically
svn-id: r44659
2009-10-05 12:04:39 +00:00
Martin Kiewitz
6e38de3905 SCI/newgui: kDrawControl on icon implemented
svn-id: r44658
2009-10-05 11:42:04 +00:00
Filippos Karapetis
55e7c29d95 Removed dead code
svn-id: r44657
2009-10-05 10:27:00 +00:00
Willem Jan Palenstijn
4478ab6472 SCI: Name argument
svn-id: r44656
2009-10-05 09:23:59 +00:00
Filippos Karapetis
d37f4ea07d Proper check for window shadows
svn-id: r44655
2009-10-05 09:20:55 +00:00
Filippos Karapetis
93833ee86a Window shadows are also taken into account when storing their bits. This fixes the issue where window shadows were left on screen when windows were closed
svn-id: r44654
2009-10-05 08:19:43 +00:00
Filippos Karapetis
7f053e3a62 Removed the unused _bytesPerDisplayPixel parameter. All SCI games use 8bpp color (apart from the videos in Phantasmagoria 2, which are not part of the engine itself)
svn-id: r44653
2009-10-05 07:51:31 +00:00
Filippos Karapetis
d61e73367f Silenced some warnings in drawVectorData()
svn-id: r44652
2009-10-05 07:48:43 +00:00
Filippos Karapetis
3f77685f13 More method renaming
svn-id: r44651
2009-10-05 07:38:05 +00:00
Filippos Karapetis
6f97a7ca81 Cleanup
svn-id: r44650
2009-10-05 07:25:18 +00:00
Filippos Karapetis
8568892bf5 - Renamed GUI -> Gui and capitalized as appropriate (e.g. SciGUIwindowMgr -> SciGuiWindowMgr)
- Renamed "cell" -> "cel"

svn-id: r44649
2009-10-05 07:10:01 +00:00
Filippos Karapetis
136dbba9c4 Fixed warning (GameObject is a struct)
svn-id: r44648
2009-10-05 07:00:59 +00:00
Robert Špalek
cc39c5022a Work-around a bug in the original game files.
svn-id: r44645
2009-10-04 22:55:54 +00:00
Max Horn
db8c6e3f6c SCI: Really remove sci/gui/gui.h include from engine/state.h
svn-id: r44644
2009-10-04 22:43:30 +00:00
Filippos Karapetis
71ebd67331 - Minimize the parameters passed to SciGUIfont()
- Some WIP on the pattern_Textures array

svn-id: r44641
2009-10-04 22:32:36 +00:00
Willem Jan Palenstijn
632359c0b4 SCI: Fix cast, constness
svn-id: r44640
2009-10-04 22:26:57 +00:00
Martin Kiewitz
92d0a9e17f SCI/newgui: EGA view loading / mapping table
svn-id: r44639
2009-10-04 22:15:19 +00:00
Robert Špalek
eb56dfa965 Fixed two bugs concerning loading:
1. a room need to be reloaded by force when the loaded game is in the same
room as the game before the load
2. objects from the last room and their animations must be deallocated
before I change the room number

svn-id: r44638
2009-10-04 22:11:46 +00:00
Martin Kiewitz
6063d5fbe9 SCI/newgui: ega view loading implemented, unpacking still missing
svn-id: r44637
2009-10-04 21:57:31 +00:00
Martin Kiewitz
08c7ec123d SCI/newgui: SciGUIview class now uses resmanager to detect view format
svn-id: r44636
2009-10-04 21:30:13 +00:00
Max Horn
db2e5a4fb5 SCI: Rework the way SciGUIwindowMgr keeps track of windows/ports; remove the GUI heapmanager
svn-id: r44635
2009-10-04 21:27:24 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Robert Špalek
c8f002ae43 Removed Ctrl-Left Click treating as a Right Click
svn-id: r44633
2009-10-04 20:08:11 +00:00
Max Horn
43a9f9c2ef SCI: Add include guards for gui headers; don't include gui/gui.h from engine/state.h
svn-id: r44632
2009-10-04 20:01:21 +00:00
Martin Kiewitz
69af4ce9f4 SCI/newgui: implemented kPalette / set intensity
svn-id: r44631
2009-10-04 19:49:47 +00:00