Commit Graph

82 Commits

Author SHA1 Message Date
Matthew Hoops
4516b5ea24 GRAPHICS: Convert PictDecoder to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
5e52b0a5d4 MOHAWK: Split the graphics classes into their own files 2012-03-10 13:55:08 -05:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Matthew Hoops
d1628feb76 MOHAWK: Fix Myst ME Mac picture file names 2011-12-12 12:28:49 -05:00
Bastien Bouclet
3ca0b304cf MOHAWK: Implement fading for Myst Demo 2011-08-27 17:09:11 +02:00
Matthew Hoops
fcd84f67c8 MOHAWK: Stub off Riven transition speed code 2011-08-15 22:53:02 -04:00
Bastien Bouclet
0bbd43eb32 MOHAWK: Implement Myst demo opcodes 298 and 299, sneak preview speech. 2011-08-13 20:22:27 +02:00
Bastien Bouclet
7cc82487d3 MOHAWK: When running scripts in Myst, add delays when necessary between draws to mimic older hardware. 2011-05-14 14:10:45 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
bf15946816 MOHAWK: Remove duplicate #include 2011-04-28 21:05:40 +03:00
Ori Avtalion
ca23658908 MOHAWK: Fix compilation when only default engines are enabled 2011-04-28 21:03:24 +03:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
ca240b4936 MOHAWK: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:58:07 +02:00
Johannes Schickel
fedd4d7809 MOHAWK: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:30:02 +02:00
Matthew Hoops
b101fd6f03 MOHAWK: Allow disabling of Riven compilation 2011-03-28 22:26:23 -04:00
Matthew Hoops
4a7572d893 MOHAWK: Allow disabling compiling cstime 2011-03-28 22:26:23 -04:00
Matthew Hoops
e5811cd6c3 MOHAWK: Allow disabling compilation of Myst 2011-03-28 22:26:23 -04:00
Matthew Hoops
4235358fad MOHAWK: Use direct access on the hashmap for Riven variables now 2011-03-23 23:14:59 -04:00
Matthew Hoops
bc1c84e6c8 MOHAWK: Rename OldMohawkBitmap to LivingBooksBitmap_v1
'Old' is very ambiguous ;)
2011-03-22 21:13:54 -04:00
Matthew Hoops
8743838f47 MOHAWK: Add initial support for the Riven credits sequence
The credits start too early for a few of the end game sequences, but otherwise works well (minus missing fade support, but that is throughout the game anyway).
2011-03-09 13:59:30 -05:00
Johannes Schickel
accab0e00f MOHAWK: Change bitmaps to use RGB palettes.
Thanks to clone2727 for reviewing this patch.
2011-02-19 23:01:40 +01:00
Johannes Schickel
3f8e860a23 MOHAWK: Adapt to setPalette RGBA->RGB change.
Currently in some places the RGBA palettes are converted to RGB before they are
set up. There might be a better way, but this should work fine for now.
2011-02-14 17:08:32 +01:00
Matthew Hoops
d096b78aca MOHAWK: Add support for Mac LB v2 games 2011-02-13 16:14:07 -05:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Alyssa Milburn
b10f072c9e MOHAWK: Add CSTime engine.
svn-id: r55362
2011-01-20 21:35:00 +00:00
Alyssa Milburn
a3e9197805 MOHAWK: Add getSubImageSize function.
svn-id: r55334
2011-01-19 20:53:28 +00:00
Matthew Hoops
e2d9a34bee MOHAWK: Cleanup some Riven code
svn-id: r55327
2011-01-19 15:22:39 +00:00
Matthew Hoops
503fdb6147 GRAPHICS: Add a getSurface() function to JPEG to automatically convert to RGB
svn-id: r55301
2011-01-18 16:18:10 +00:00
Matthew Hoops
d03ff6e036 MOHAWK: Allow for Riven to update specific portions of the screen
svn-id: r55206
2011-01-11 19:23:24 +00:00
Matthew Hoops
8a77f49a59 MOHAWK: Cleanup some spacing, formatting, and naming
svn-id: r55109
2011-01-03 20:40:07 +00:00
David Turner
c71c3ab591 MOHAWK: Minor Correction to Graphics Debug Output.
svn-id: r55073
2010-12-31 10:58:59 +00:00
Bastien Bouclet
14cd97cc77 MOHAWK: Implement Myst opcodes 129 to 132, and 192 to 197, Stellar observatory buttons
svn-id: r55065
2010-12-30 13:53:14 +00:00
Alyssa Milburn
64a8652cd6 MOHAWK: Add subimage drawing/caching code
svn-id: r55038
2010-12-25 19:52:54 +00:00
David Turner
3cc456bf2a MOHAWK: Fixed Valgrind Error in Myst When Selecting 0 in Imager Code (Myst Card 4709)
Reworked MystGraphics::copyImageSectionToScreen() :
Added clipping of width and height within src surface dimensions.
Improved function readability.

svn-id: r54972
2010-12-20 04:29:53 +00:00
Bastien Bouclet
7daea87e61 MOHAWK: Yet more Myst vertical alignment / clipping fixes.
Fixes the boiler wheels drawing incorrectly. Fixes the rocket piano's leftmost key drawing too high. Fixes the timeclock controls beeing misaligned.

svn-id: r54947
2010-12-17 18:18:52 +00:00
Matthew Hoops
8ec9f96d54 MOHAWK: Remove global construction of _viewport
svn-id: r54945
2010-12-17 14:36:32 +00:00
Bastien Bouclet
c441539bb0 MOHAWK: Change resolution to 544x332 to match the original.
This fixes the vertical alignment issues, and graphic corruption on some cards.

svn-id: r54943
2010-12-17 11:31:08 +00:00
Bastien Bouclet
24808d49eb MOHAWK: Added the "resources" command to Myst's debug console, which lists the resources in the current card.
Allow the "drawRect" debug command to take a resource id as a parameter, to draw the resource's bounding rect.

svn-id: r54933
2010-12-16 16:12:38 +00:00
Bastien Bouclet
d4ce603361 MOHAWK: Rework Myst GFX updates
- Initial card state is drawn to the back buffer
- Script driven updates are drawn to the front buffer
Allows opcode 28 (copy back buffer to screen) and opcodes 29/33 (copy image to screen / back buffer) to work properly.
Fixes among others the generator room lights, and the matchbox.

svn-id: r54907
2010-12-14 19:11:16 +00:00
Bastien Bouclet
c6887d0404 MOHAWK: Implement Myst opcodes 106, 108 and 202 : tower rotation
svn-id: r54883
2010-12-12 18:41:15 +00:00
Matthew Hoops
b1e3b48418 MOHAWK: Fix some Myst ME cards that store PICT images in WDIB resources (see myst 4013)
svn-id: r54867
2010-12-11 18:38:27 +00:00
Alyssa Milburn
27799e354e MOHAWK: move shared setPalette/copyImage routines into GraphicsManager
svn-id: r54743
2010-12-02 21:25:15 +00:00
Alyssa Milburn
ddd691e2d3 MOHAWK: add LBGraphics::copyImageSectionToScreen
svn-id: r54707
2010-12-01 18:21:17 +00:00
Alyssa Milburn
c34410d49d MOHAWK: don't include livingbooks.h from graphics.h
svn-id: r54670
2010-11-30 09:04:47 +00:00
Bastien Bouclet
efc6ff54a3 MOHAWK: Misc cleanups
svn-id: r54645
2010-11-29 21:03:02 +00:00
Bastien Bouclet
836aab9968 MOHAWK: Fix drawing the last step of an animated update
svn-id: r54635
2010-11-29 21:00:37 +00:00
Bastien Bouclet
056ebd43d4 MOHAWK: Complete drawing the animated rect if running the animation steps didn't draw the whole rect.
svn-id: r54631
2010-11-29 20:59:30 +00:00
Bastien Bouclet
fcc1dd6749 MOHAWK: Implement 4 types of animated updates for Myst
svn-id: r54629
2010-11-29 20:58:58 +00:00
Bastien Bouclet
b49cb3b35a MOHAWK: Start implementing opcodes using the animated update feature
svn-id: r54627
2010-11-29 20:58:28 +00:00