aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/picture.cpp
AgeCommit message (Collapse)Author
2016-02-27AGI: Add support for upscaling and Hercules hires fontMartin Kiewitz
- User option to force Hercules hires font for any rendering mode - Also change mouse cursor hotspots from 1,1 to 0,0 - Fix inaccuracy in mouse controlled game menu - Change render_Block(), drawBox(), drawDisplayRect() to use upper Y instead of lower Y. Original AGI uses lower Y, but upper Y makes upscaling way easier.
2016-02-09AGI: Fix various CIDsMartin Kiewitz
CID 1350104: regression from graphics rewrite in C64 picture drawing CID 1350101: potential buffer overflow in set.simple command CID 1350112: uninitialized variable in TextMgr CID 1350113: false positive uninitialized variable in SystemUI CID 1350114: potentially uninitialized variable in IIgsSample CID 1350117: false positive uninitialized variable in InventoryMgr CID 1350103: code bug in CGA rendering TextMgr::charAttrib_Set() CID 1350109: false positive in GfxFont::loadFontAmigaPseudoTopaz() CID 1350111: original AGI uninitialized memory issue in SpritesMgr::showObject
2016-02-02AGI: Fix formatting.Johannes Schickel
This mostly enforces tabs for indentation and spaces for formatting. But also fixes spaces on empty lines, some extra/missing spaces. astyle + manual fixup
2016-01-31AGI: fix warningsMartin Kiewitz
2016-01-29AGI: use Common::RenderMode instead of its ownMartin Kiewitz
AppleIIgs + Atari ST weren't available back then in the enum. They now are, so I can use the Common one.
2016-01-29AGI: graphics rewrite + cleanupMartin Kiewitz
- graphics code fully rewritten - Apple IIgs font support - Amiga Topaz support - Word parser rewritten - menu code rewritten - removed forced 2 second delay on all room changes replaced with heuristic to detect situations, where it's required - lots of naming cleanup - new console commands show_map, screenobj, vmvars and vmflags - all sorts of hacks/workarounds removed - added SCI wait mouse cursor - added Apple IIgs mouse cursor - added Atari ST mouse cursor - added Amiga/Apple IIgs transition - added Atari ST transition - user can select another render mode and use Apple IIgs palette + transition for PC versions - inventory screen rewritten - SetSimple command now properly implemented - PreAGI Mickey: Sierra logo now shown - saved games: now saving controller key mapping also saving automatic save data (SetSimple command) - fixed invalid memory access when saving games (31 bytes were saved using Common::String c_ptr() Special Thanks to: - fuzzie for helping out with the Apple IIgs font + valgrind - eriktorbjorn for helping out with valgrind - LordHoto for figuring out the code, that caused invalid memory access in the original code, when saving a game - sev for help out with reversing the Amiga transition currently missing: - mouse support for menu - mouse support for system dialogs - predictive dialog support
2014-02-18AGI: Make GPL headers consistent in themselves.Johannes Schickel
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-14ALL: colour -> colorMax Horn
2010-09-25AGI: Fix C64 AGI picturesMatthew Hoops
The initial screen color needs to be 0 and not 0xf for these. Winnie C64/Apple II should be completable now, with some graphical glitches and palette problems. svn-id: r52881
2010-06-15AGI: Fix bug #2825278.Eugene Sandulenko
Bug #2825278: "AGI: KQ4: Swimming on land". Our drawing code was not picture perfect, and thus priority screen was trashed by one of Fills, i.e. the color leaked and took whole screen. svn-id: r49743
2010-01-03Reduce header dependencies for AGI engine.Eugene Sandulenko
svn-id: r46942
2009-06-06CleanupEugene Sandulenko
svn-id: r41251
2009-06-06Whitespace fixes and C++ commentsEugene Sandulenko
svn-id: r41239
2009-01-29A ton of code formatting fixes; also fixed warnings about single line loops ↵Max Horn
like 'while(cond);' by inserting newlines svn-id: r36127
2007-12-13Use CLIP template for clipping in the AGI engineFilippos Karapetis
svn-id: r29854
2007-12-09cleanupMax Horn
svn-id: r29792
2007-12-08Fix compiler warningMax Horn
svn-id: r29761
2007-12-06Move AGI engine back to custom line drawing routine as it caused regressionsEugene Sandulenko
svn-id: r29735
2007-12-05Remove now obsolete commentFilippos Karapetis
svn-id: r29729
2007-11-28Fixes Mickey and Gold rush. Not the cleanest fix but tested and worksStuart George
svn-id: r29658
2007-11-28Fix regression from r28850 that rewrote all pattern data. Fixes agi v3 ↵Stuart George
circle plot patterns svn-id: r29653
2007-11-25Switch AGI to common drawLine() as wellEugene Sandulenko
svn-id: r29636
2007-11-22Objects in Mickey's Space Adventure are shown correctly nowFilippos Karapetis
svn-id: r29612
2007-11-22Refactore the AGI floodfill codeMax Horn
svn-id: r29600
2007-11-21CleanupFilippos Karapetis
svn-id: r29592
2007-11-21Fixed usage of Common::Stack.Johannes Schickel
svn-id: r29591
2007-11-21Oops, Common::Stack should be used instead of Common::FixedStackFilippos Karapetis
svn-id: r29590
2007-11-21Common::FixedStack is used now for AGI flood fill routinesFilippos Karapetis
svn-id: r29589
2007-09-22Make sure that picture fill doesn't go out of the picture's bounds, since ↵Filippos Karapetis
pre-AGI pictures have different dimensions svn-id: r29034
2007-09-21Removed an unnecessary picture update when drawing crystal objects in MickeyFilippos Karapetis
svn-id: r29004
2007-09-21The animation of the crystals in Mickey is shown correctly nowFilippos Karapetis
svn-id: r29003
2007-09-20Last pieces of Troll's Tale. Only missing thing is soundEugene Sandulenko
svn-id: r28992
2007-09-20Implement inventory in Troll's TaleEugene Sandulenko
svn-id: r28987
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-09-19Don't free the picture buffer inside decodePicture(). The buffer should (and ↵Filippos Karapetis
is) freed from the functions that decodePicture() is being called from svn-id: r28964
2007-09-18Fix picture drawing in Troll's Tale. Implement room navigation.Eugene Sandulenko
svn-id: r28946
2007-09-18Code formatting fixesMax Horn
svn-id: r28945
2007-09-18WIP for Troll's TaleEugene Sandulenko
svn-id: r28939
2007-09-11fix regression: free the picture data after decoding a PreAGI pictureMatthew Hoops
svn-id: r28894
2007-09-11PreAGI does not need an AGI resource loader, as it only needs to load ↵Matthew Hoops
pictures and doesn't use directories. So, this allows Winnie to decode pictures without using the loader svn-id: r28893
2007-09-08Fixed various warningsMax Horn
svn-id: r28879
2007-09-06Objects in Mickey are shown correctly now. Also, reduced the places where ↵Filippos Karapetis
the screen gets updated svn-id: r28862
2007-09-05Move static variables to class.Eugene Sandulenko
svn-id: r28855
2007-09-05Some updates for Mickey:Filippos Karapetis
- Click to move functionality (improvement over the original game). It's now possible to navigate around using the mouse as well, together with the menu commands. The mouse cursor changes when the player hovers it at the picture's edges, towards a direction where Mickey is able to move to (north, south, east or west) - waitAnyKey has been moved into Mickey's code (because of the animation part) - Implemented the circle flag for AGI picture decoding svn-id: r28853
2007-09-04- Replace plotPattern() function with one based on specs.Eugene Sandulenko
- Add PreAGI differences to plotPattern function. - This effectively fixes Mickey title. svn-id: r28850
2007-09-03Some updates for Mickey: objects are shown now (though still incorrectly), ↵Filippos Karapetis
implemented some incomplete code for the ship's blinking lights, implemented the scene animation function svn-id: r28848
2007-09-03Make static data tables const (helps the optimizer a bit)Max Horn
svn-id: r28846
2007-09-02The dimensions of the picture resources in preagi games is different for ↵Filippos Karapetis
each game. Mickey's pictures are shown correctly now svn-id: r28819