Commit Graph
101 Commits
Author SHA1 Message Date
Matthew Hoops 266806d892 SCI: Fix Mac icon bar palettes
The Mac icon bar uses a palette from the executable and keeps those entries in the palette constantly.

In addition, we're now performing gamma correction on the Mac-based colors so that they are in the same gamma as SCI. The color matching now works with this and using the same color finding as the Mac Palette Manager.
2011-02-17 13:38:23 -05:00
Matthew Hoops 85f8dc5dee SCI: Add detection for Freddy Pharkas Mac
svn-id: r55828
2011-02-08 15:03:23 +00:00
Max Horn ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Matthew Hoops 4d088332a2 SCI: Add support for GK1 Mac high-res fonts
svn-id: r55754
2011-02-03 15:51:51 +00:00
Matthew Hoops 4c0af01d6a SCI: Disable the special QFG1 Mac icon bar
The original interpreter completely ignores it in favor of the regular one.

svn-id: r55748
2011-02-03 02:26:57 +00:00
Matthew Hoops 24e983610d SCI: Fix GK1 Mac views, the game now starts
svn-id: r55721
2011-02-02 15:33:33 +00:00
Filippos Karapetis 5d7729be32 SCI: Cleanup
svn-id: r55182
2011-01-09 13:21:19 +00:00
Filippos Karapetis 8b14137c07 SCI: Some video related changes
- Now playVideo() is used when playing videos from the console (reducing
code duplication)
- Added support for 16bpp scaling in scale2x, so that the 16-bit color
Duck videos are scaled correctly

svn-id: r54210
2010-11-11 19:22:56 +00:00
Martin Kiewitz bb716c23fa SCI: adding force to memorial area for SQ3/intro
makes the view getting fully undithered

svn-id: r54068
2010-11-04 18:37:03 +00:00
Matthew Hoops 07abe3d603 SCI: Add detection for Hoyle4 Mac
svn-id: r53397
2010-10-13 03:28:59 +00:00
Filippos Karapetis dd0095f1a2 SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code more
readable

svn-id: r52615
2010-09-07 08:12:59 +00:00
Martin Kiewitz 52c9c7b445 SCI: fixing getting selected language
for multilingual games

svn-id: r51608
2010-08-02 08:47:06 +00:00
Martin Kiewitz ddd2bd6a1c SCI: switching to upscaled hires on pc98 games
instead of checking the language to be japanese for that

svn-id: r51601
2010-08-01 22:59:58 +00:00
Matthew Hoops 79bf94c877 SCI: Move kernelShakeScreen to GfxScreen so it can be used in SCI32 (it's used in GK1)
svn-id: r51583
2010-08-01 17:54:48 +00:00
Martin Kiewitz f456b7cfa2 SCI: separating qfg1ega and qfg1vga gameids
svn-id: r50881
2010-07-14 11:53:12 +00:00
Martin Kiewitz c77c84f5c5 SCI: also sync palette after playing movies, fixes kq6 intro
svn-id: r50798
2010-07-11 10:11:31 +00:00
Martin Kiewitz c1aecd0b9b SCI: change drawing of fonts, so that we never do triple pixel line duplications. sierra didn't do this, but it looks much better - "fixes" gk1, kq6 font rendering when running in hires
svn-id: r50599
2010-07-02 15:58:09 +00:00
Martin Kiewitz 7b6be52f22 SCI: added possible workaround or final solution for hires portraits not fully removed from screen in kq6 - needs to get investigated further but this will get a little bit difficult
svn-id: r50594
2010-07-02 09:50:33 +00:00
Martin Kiewitz 1287e6f252 SCI: adjust brRect and nsRect, if sci2 hires views are used, fixes hotspots in gk1
svn-id: r50536
2010-06-30 15:44:26 +00:00
Max Horn 8db0f726c0 SCI: Rewrap more comments
svn-id: r50500
2010-06-29 14:55:32 +00:00
Willem Jan Palenstijn 0f0977535c Remove CRs
svn-id: r50435
2010-06-28 12:13:04 +00:00
Martin Kiewitz 445bfee08c SCI: add const again to newWidth
svn-id: r50434
2010-06-28 12:09:48 +00:00
Martin Kiewitz 6981b943b5 SCI: fix regression of r50424, 2x scaling
svn-id: r50433
2010-06-28 12:04:35 +00:00
Max Horn 793d482f4f SCI: Optimized GfxScreen::scale2x a bit
svn-id: r50424
2010-06-28 11:21:07 +00:00
Max Horn 7e0240ab14 SCI: Comment cleanup
svn-id: r50423
2010-06-28 11:20:51 +00:00
Max Horn db2d41a433 SCI: Make src param of GfxScreen::scale2x const
svn-id: r50420
2010-06-28 11:19:45 +00:00
Filippos Karapetis 52ddc711d0 SCI: separated the graphics initialization code a bit
- Moved all of the graphics initialization code on startup inside initGraphics()
- Moved all of the screen initialization (resolution, upscaled graphics etc) code inside GfxScreen()

svn-id: r50412
2010-06-28 08:18:55 +00:00
Max Horn 6ee82a2027 SCI: Introduce SciGameId enum
svn-id: r50273
2010-06-25 16:16:29 +00:00
Max Horn 359be0c066 SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'
svn-id: r49968
2010-06-17 23:14:34 +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 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
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 cd4812dfd9 SCI: support for kanji (sjis), minor centering issue left
svn-id: r48674
2010-04-16 18:23:50 +00:00
Max Horn 903b694574 SCI: Cleanup resource.h
svn-id: r48084
2010-02-17 23:37:32 +00:00
Martin Kiewitz 03dd0ac7bb SCI: screen specific debug functions are now called directly w/o SciGui/32
svn-id: r47905
2010-02-05 15:53:36 +00:00
Matthew Hoops 3b6f6bfbd8 SCI2 Windows games are scaled from 320x200 to 640x480, not 640x400. Aspect ratio correction will eventually have to be applied. This fixes a possible segfault when playing the credits video in GK1 (which is 640x480).
svn-id: r47895
2010-02-05 04:16:12 +00:00
Martin Kiewitz 5f39e3b7b5 SCI: kPicNotValid now uses GfxScreen directly and not SciGui/32
svn-id: r47889
2010-02-04 20:52:56 +00:00
Martin Kiewitz 5cf510648a SCI: syncWithFramebuffer() is now called directly w/o SciGui/SciGui32
svn-id: r47781
2010-01-31 21:59:37 +00:00
Martin Kiewitz 72c2d360f7 SCI: renamed SciPalette to GfxPalette, Screen to GfxScreen, GfxPalette is now called directly w/o SciGui
svn-id: r47752
2010-01-31 16:21:11 +00:00
Martin Kiewitz 5fa0718356 SCI: created isAmiga32color(), using this method instead of comparing against viewType
svn-id: r47554
2010-01-25 12:34:40 +00:00
Johannes Schickel aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Martin Kiewitz 75816d4ca1 SCI: added comment about using color 255 all the time for amiga games
svn-id: r47523
2010-01-24 20:51:34 +00:00
Martin Kiewitz 2ef7848586 SCI: changing white to be 255 for amiga all the time (works for our interpreter) - fixes mouse cursor on amiga sci1 games
svn-id: r47522
2010-01-24 20:47:35 +00:00
Martin Kiewitz d0b8a8e468 SCI: supporting .used bit 1 in palettes (force direct palette setting) and clipping palette intensity results fixes fade in/out in sq5 intro (some timing problems remain)
svn-id: r47495
2010-01-24 10:06:27 +00:00
Martin Kiewitz 9577a45cdd SCI: fixed save/restorebits within screen class for displayscreen case, fixes kq6 menu bar
svn-id: r47125
2010-01-07 15:50:58 +00:00
Martin Kiewitz 12cd066e44 SCI: fixed stupid bug in putPixelOnDisplay, fixes height of displayed hires graphics in kq6
svn-id: r47107
2010-01-07 13:30:08 +00:00
Martin Kiewitz 58aab46f06 SCI: some portrait work (kq6 now shows the main bitmap as portrait, coordinates still messed up)
svn-id: r47105
2010-01-07 10:31:29 +00:00
Martin Kiewitz edc7fcf121 SCI: sync displayScreen with framebuffer after successful video playback (fixes background vanishing in mainmenu of gk1demo)
svn-id: r47089
2010-01-06 18:59:39 +00:00