Commit Graph

207 Commits

Author SHA1 Message Date
Johannes Schickel
1a59173a9b Enable dirty rect handling for the Amiga version again.
svn-id: r43280
2009-08-11 16:46:38 +00:00
Johannes Schickel
c1511d3b44 Cleanup.
svn-id: r43279
2009-08-11 16:46:20 +00:00
Johannes Schickel
cb8b2d7799 - Fix AMIGA to DOS palette conversion
- Amiga version uses 13 instead of 12 palette buffers

svn-id: r43220
2009-08-10 19:08:00 +00:00
Johannes Schickel
bee9391d95 Use interface palette for mouse cursor in Kyra1 amiga, when it's enabled.
svn-id: r43197
2009-08-10 01:34:14 +00:00
Johannes Schickel
d68706d8ed Enable interface text fading in Kyra1 amiga again.
svn-id: r43196
2009-08-10 01:33:56 +00:00
Johannes Schickel
e265084bc3 Fix interface text color.
svn-id: r43195
2009-08-10 01:33:36 +00:00
Johannes Schickel
48e86a9e22 Initial support for correct colors in the interface of Kyra1 AMIGA.
svn-id: r43192
2009-08-10 01:32:39 +00:00
Johannes Schickel
738c51f88f Clear the destination page for bitmap loading, this fixes graphics artifacts in Kyra1 amiga.
svn-id: r43189
2009-08-09 23:32:52 +00:00
Johannes Schickel
300297d557 Add support for the font format used in Kyrandia 1 Amiga. (font colors are wrong though)
svn-id: r43187
2009-08-09 22:46:43 +00:00
Johannes Schickel
518cb968b2 Create a "Font" interface and create a "DOSFont" implementation for handling DOS version fonts.
svn-id: r43186
2009-08-09 22:46:25 +00:00
Johannes Schickel
ad40f3b46e Cleanup AMIGA graphics conversion.
svn-id: r43183
2009-08-09 19:11:10 +00:00
Johannes Schickel
84c0bf22d2 Simplify KYRA's SJIS font loading code.
svn-id: r42820
2009-07-26 14:18:49 +00:00
Johannes Schickel
cb960ad976 Change the way the font data for SJIS fonts is load.
svn-id: r42815
2009-07-26 14:17:40 +00:00
Johannes Schickel
0a03ae8265 Change KYRA to use our SJIS font, when it's available.
svn-id: r42814
2009-07-26 14:17:21 +00:00
Johannes Schickel
a93008713a Removed the now uneeded "Screen::_disableScreen" flag.
svn-id: r42366
2009-07-11 01:54:42 +00:00
Johannes Schickel
e35dd4df1c Change "FM-Towns" to "FM-TOWNS" for consistency.
svn-id: r42232
2009-07-07 19:00:39 +00:00
Johannes Schickel
8c65d4d4a9 - Rename FontSJIS::enableShadow to enableOutline.
- Initialize outline to false by default in FontTowns.

svn-id: r42231
2009-07-07 18:17:30 +00:00
Johannes Schickel
62eebc3e17 - Added support for outlined FM-Towns ROM drawing
- Adapted KYRA to use that

svn-id: r42230
2009-07-07 18:10:35 +00:00
Johannes Schickel
ec2c7cfefa Adapt KYRA to use the new Graphics::FontSJIS code.
svn-id: r42222
2009-07-07 14:22:39 +00:00
Florian Kagerer
9255bfc907 KYRA: fix minor bug in Screen::drawShape()
svn-id: r42110
2009-07-04 21:18:20 +00:00
Johannes Schickel
267efdc874 Fix invisible mouse cursor, when picking up items.
svn-id: r41967
2009-06-29 23:14:35 +00:00
Johannes Schickel
18940ffd46 Fix bug in drawShape.
svn-id: r41964
2009-06-29 20:17:10 +00:00
Johannes Schickel
e15502d381 Fix bug in drawShape, which caused invisibility in Kyra1 to be displayed incorrectly.
svn-id: r41962
2009-06-29 19:02:15 +00:00
Johannes Schickel
cc0b30370e Fix kyra2/kyra3 mouse cursor related regressions, introduced with r41959.
svn-id: r41960
2009-06-29 18:49:17 +00:00
Johannes Schickel
67f69bcaf2 - Get rid of code duplication for mouse cursor setup
- Fix mouse cursor colors in LoL PC98
(This commit might introduce regressions, since it changes the key color the mouse cursor uses)

svn-id: r41959
2009-06-29 18:00:18 +00:00
Johannes Schickel
07cdbd273d Add a "fill" method to Palette.
svn-id: r41952
2009-06-29 16:49:38 +00:00
Johannes Schickel
b12496d1dd Modified Palette::load*Palette definition.
svn-id: r41941
2009-06-29 16:05:50 +00:00
Johannes Schickel
e212c06845 Implement palette difference in Kanji drawing code for PC98.
svn-id: r41896
2009-06-26 00:12:08 +00:00
Johannes Schickel
e45a941f9d Implement PC98 text mode color palette.
svn-id: r41895
2009-06-26 00:11:56 +00:00
Johannes Schickel
44e2f4c929 Only initialize palettes with 16 colors in (real) 16 color games.
svn-id: r41892
2009-06-25 23:04:32 +00:00
Johannes Schickel
7bbad2738a Store palettes in a Common::Array instead of a fixed size array.
svn-id: r41891
2009-06-25 23:04:21 +00:00
Johannes Schickel
fc0d0e2323 Cleanup palette setup.
svn-id: r41890
2009-06-25 23:04:08 +00:00
Johannes Schickel
86b63e0e4e Implement proper AMIGA to VGA color conversion.
svn-id: r41852
2009-06-25 02:39:23 +00:00
Johannes Schickel
bd4b5d8336 Implement proper VGA (a color component in [0, 63]) to our palette format (color component in [0, 255]) conversion.
svn-id: r41851
2009-06-25 02:39:00 +00:00
Johannes Schickel
951e82a921 Readd PC98 palette loading for LoL 16 color.
svn-id: r41850
2009-06-25 02:38:19 +00:00
Johannes Schickel
6e299e4777 Strip trailing whitespaces and tabs.
svn-id: r41848
2009-06-25 01:30:12 +00:00
Johannes Schickel
4c01d4a954 Fix memory leak.
svn-id: r41747
2009-06-22 02:41:56 +00:00
Johannes Schickel
5767277d8d - Fixed regression in Screen::fadeToBlack
- Fixed some palette regressions in Kyra1 Amiga (only the intro works currently)

svn-id: r41746
2009-06-22 02:37:57 +00:00
Johannes Schickel
d7432e18ea Changed Screen::loadPalette to take a reference to a Palette object instead of an array.
svn-id: r41745
2009-06-22 02:37:41 +00:00
Johannes Schickel
d2e5166dae Changed Screen::loadBitmap and Movie::open to take an optional Palette pointer instead of an optional array pointer.
svn-id: r41744
2009-06-22 02:37:20 +00:00
Johannes Schickel
73ea378dee - Changed the following Screen functions to take a reference to a Palette object:
-> setScreenPalette
	-> fadePalette
	-> getFadeParams
	-> fadePalStep
- Fixed initialization of 256 color palettes

svn-id: r41743
2009-06-22 02:36:54 +00:00
Johannes Schickel
4bb392b593 Add wrapper functionality for copying full palettes.
svn-id: r41742
2009-06-22 02:36:16 +00:00
Johannes Schickel
882662977f Changed Screen::getPalette to return a reference to a Palette object.
svn-id: r41741
2009-06-22 02:35:45 +00:00
Johannes Schickel
9da52cb282 Got rid of Screen::_currentPalette.
svn-id: r41740
2009-06-22 02:35:04 +00:00
Johannes Schickel
b448d506b8 Start refactoring palette handling into new class "Palette".
svn-id: r41739
2009-06-22 02:34:35 +00:00
Johannes Schickel
0fa9b569bf Cleanup.
svn-id: r41723
2009-06-21 01:22:23 +00:00
Johannes Schickel
89607d994b Fix drawing of sharp s.
svn-id: r41719
2009-06-21 01:15:09 +00:00
Johannes Schickel
d4248b10c8 Prevent font code to draw characters not included in the font.
svn-id: r41718
2009-06-21 01:14:57 +00:00
Florian Kagerer
583a89be62 LOL: - started on the ingame menu code (death menu, load menu and main menu)
- fixed regression in kyra gui code (broken menu highlighting)
- fixed minor bug in animation code

svn-id: r41557
2009-06-15 20:52:09 +00:00
Johannes Schickel
ac46c98fb8 - Moved Screen_v2::copyWsaRect to Screen::copyWsaRect
- Made WSAMovie_v1::displayFrame code match the original
- Changed WSAMovieAmiga::displayFrame to use Screen::copyWsaRect too
- Got rid of '...' parameter usage in all WSA player classes

svn-id: r41398
2009-06-09 11:26:15 +00:00