aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/graphics.cpp
AgeCommit message (Collapse)Author
2011-01-20MOHAWK: Add CSTime engine.Alyssa Milburn
svn-id: r55362
2011-01-19MOHAWK: Add getSubImageSize function.Alyssa Milburn
svn-id: r55334
2011-01-19MOHAWK: Cleanup some Riven codeMatthew Hoops
svn-id: r55327
2011-01-18GRAPHICS: Add a getSurface() function to JPEG to automatically convert to RGBMatthew Hoops
svn-id: r55301
2011-01-11MOHAWK: Allow for Riven to update specific portions of the screenMatthew Hoops
svn-id: r55206
2011-01-03MOHAWK: Cleanup some spacing, formatting, and namingMatthew Hoops
svn-id: r55109
2010-12-31MOHAWK: Minor Correction to Graphics Debug Output.David Turner
svn-id: r55073
2010-12-30MOHAWK: Implement Myst opcodes 129 to 132, and 192 to 197, Stellar ↵Bastien Bouclet
observatory buttons svn-id: r55065
2010-12-25MOHAWK: Add subimage drawing/caching codeAlyssa Milburn
svn-id: r55038
2010-12-20MOHAWK: Fixed Valgrind Error in Myst When Selecting 0 in Imager Code (Myst ↵David Turner
Card 4709) Reworked MystGraphics::copyImageSectionToScreen() : Added clipping of width and height within src surface dimensions. Improved function readability. svn-id: r54972
2010-12-17MOHAWK: Yet more Myst vertical alignment / clipping fixes.Bastien Bouclet
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-17MOHAWK: Remove global construction of _viewportMatthew Hoops
svn-id: r54945
2010-12-17MOHAWK: Change resolution to 544x332 to match the original.Bastien Bouclet
This fixes the vertical alignment issues, and graphic corruption on some cards. svn-id: r54943
2010-12-16MOHAWK: Added the "resources" command to Myst's debug console, which lists ↵Bastien Bouclet
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-14MOHAWK: Rework Myst GFX updatesBastien Bouclet
- 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-12MOHAWK: Implement Myst opcodes 106, 108 and 202 : tower rotationBastien Bouclet
svn-id: r54883
2010-12-11MOHAWK: Fix some Myst ME cards that store PICT images in WDIB resources (see ↵Matthew Hoops
myst 4013) svn-id: r54867
2010-12-02MOHAWK: move shared setPalette/copyImage routines into GraphicsManagerAlyssa Milburn
svn-id: r54743
2010-12-01MOHAWK: add LBGraphics::copyImageSectionToScreenAlyssa Milburn
svn-id: r54707
2010-11-30MOHAWK: don't include livingbooks.h from graphics.hAlyssa Milburn
svn-id: r54670
2010-11-29MOHAWK: Misc cleanupsBastien Bouclet
svn-id: r54645
2010-11-29MOHAWK: Fix drawing the last step of an animated updateBastien Bouclet
svn-id: r54635
2010-11-29MOHAWK: Complete drawing the animated rect if running the animation steps ↵Bastien Bouclet
didn't draw the whole rect. svn-id: r54631
2010-11-29MOHAWK: Implement 4 types of animated updates for MystBastien Bouclet
svn-id: r54629
2010-11-29MOHAWK: Start implementing opcodes using the animated update featureBastien Bouclet
svn-id: r54627
2010-11-29MOHAWK: Added dirty rects support for MystBastien Bouclet
svn-id: r54625
2010-11-29Revert "MOHAWK: Revert the screen cache since it has a huge performance hit, ↵Bastien Bouclet
and is not needed as is." This reverts commit 291bea1858c12b8557aeb46e6f57dc701293c956. svn-id: r54624
2010-11-29MOHAWK: Disabled hotspots are now unclickable areas. Display blue rects for ↵Bastien Bouclet
unreachable zip destinations when drawing resource rects. svn-id: r54615
2010-11-29MOHAWK: Revert the screen cache since it has a huge performance hit, and is ↵Bastien Bouclet
not needed as is. svn-id: r54605
2010-11-28MOHAWK: Add basic Living Books support (all credit goes to fuzzie!)Matthew Hoops
v1 and v3 (both Windows and Mac) are working, v1 support is in better shape. svn-id: r54558
2010-11-25MOHAWK: Refactor cursor handlingMatthew Hoops
Cursor handling has now been moved to a new CursorManager class (which is subclassed for Myst/Riven) from the GraphicsManager classes. This will be needed for Living Books which will have a class for Windows and Mac cursors (coming soon!). svn-id: r54469
2010-11-25MOHAWK: Cleanup image surface handlingMatthew Hoops
- Renamed ImageData to MohawkSurface - Added offset x/y fields to MohawkSurface - The image cache now stores MohawkSurface pointers - Switched Living Books to 8bpp mode (it requires that in the end anyway) svn-id: r54468
2010-11-22MOHAWK: Fix a typo fail (thanks, fuzzie)Matthew Hoops
svn-id: r54419
2010-11-20MOHAWK: Cleanup resource handlingMatthew Hoops
- Renamed getRawData() to getResource() - Add a getResource() and hasResource() function for named resources - Other minor formatting changes svn-id: r54396
2010-11-19MOHAWK: Implement an image cache systemMatthew Hoops
This should greatly improve the performance in Myst (especially Myst ME, which uses the slow JPEG decoder). This should also slightly improve the Riven performance; the sliders now work a bit better. svn-id: r54388
2010-11-18MOHAWK: Implement the old Mohawk bitmap format (thanks to fuzzie)Matthew Hoops
svn-id: r54319
2010-11-17MOHAWK: Cache the Myst screen bufferMatthew Hoops
This is needed for use with sliders. The screen is now updated fewer times as well. svn-id: r54300
2010-11-17MOHAWK: Apply patch #2988976: "MYST: Fix drawing partial subimages"Matthew Hoops
svn-id: r54297
2010-11-09MOHAWK: Fix one more memory leak (hopefully the last :))Matthew Hoops
svn-id: r54166
2010-11-09MOHAWK: Close a number of memory leaks in Myst.David Turner
These corrections close a number of leaks reported by running Valgrind with --leak-check=full option, but some still remain, mainly in the image loading and caching. svn-id: r54152
2010-09-09MOHAWK: Add initial work on the Riven marble puzzleMatthew Hoops
The marbles are currently drawn, and you can pick them up, but you can not place them on the grid yet. svn-id: r52661
2010-09-05MOHAWK: CleanupMatthew Hoops
- Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually - Some minor function signature changes (const!) - Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable - Use solely Common::String in getVar() svn-id: r52538
2010-09-03MOHAWK: Improve support for the Riven DemoMatthew Hoops
- The exit button now appears and is functional - The intro movies now play on start up - Add shortcuts for returning to the menu/playing the intro videos again - Make the text when hitting a boundary match the original - Change the wording of the browser button message - Note: The demo's extras.mhk (not the full game's!) is required now svn-id: r52509
2010-08-31MOHAWK: Implement functionality for the dome slidersMatthew Hoops
The sliders are now movable and reset properly. The combination defined in the lab journal works on all the domes too. svn-id: r52476
2010-08-19MOHAWK: Draw in the telescope combination in Catherine's journalMatthew Hoops
svn-id: r52215
2010-06-26Add the page turning sound for the Riven journals and stub off the swipe ↵Matthew Hoops
transition used when turning pages. svn-id: r50336
2010-06-25Add support for the third inventory case in Riven: you have the two journals ↵Matthew Hoops
but not the trap book (happens at the end of the game). svn-id: r50280
2010-05-24Move the PICT code to graphics/ with some updates; needed for SCI1.1 Mac.Matthew Hoops
svn-id: r49195
2010-05-23Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when ↵Matthew Hoops
Mohawk is not enabled) so SCI can use the code. svn-id: r49165
2010-05-04Move initGraphics and initCommonGFX from to new header.Max Horn
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