Commit Graph
75 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh f1f4657b10 AGI: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Eugene Sandulenko 11558b92aa AGI: Fix pattern plotting. Bugreport #11923 2021-08-18 00:46:49 +02:00
Eugene Sandulenko 3e0663a516 AGI: Clean up object initialization 2016-06-05 23:10:20 +02:00
Martin Kiewitz e1c36a52b5 AGI: Add support for upscaling and Hercules hires font
- 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-27 21:44:21 +01:00
Martin Kiewitz f5a83adc01 AGI: Fix various CIDs
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-09 12:47:45 +01:00
Johannes Schickel 6778175f6d AGI: Fix formatting.
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-02-02 20:15:18 +01:00
Martin Kiewitz 60cd621b74 AGI: fix warnings 2016-01-31 23:13:19 +01:00
Martin Kiewitz 0f15ec2ce8 AGI: use Common::RenderMode instead of its own
AppleIIgs + Atari ST weren't available back then in the enum.
They now are, so I can use the Common one.
2016-01-29 15:43:45 +01:00
Martin Kiewitz 8a595e7771 AGI: graphics rewrite + cleanup
- 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
2016-01-29 13:22:22 +01:00
Johannes Schickel 6aac905dfd AGI: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02: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
Max Horn 84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
Matthew Hoops d4504a3f3a AGI: Fix C64 AGI pictures
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-09-25 14:28:48 +00:00
Eugene Sandulenko 83053ecc27 AGI: Fix bug #2825278.
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-06-15 10:31:39 +00:00
Eugene Sandulenko 8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Eugene Sandulenko 45764de138 Cleanup
svn-id: r41251
2009-06-06 17:44:24 +00:00
Eugene Sandulenko 93d62da652 Whitespace fixes and C++ comments
svn-id: r41239
2009-06-06 17:39:13 +00:00
Max Horn ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Filippos Karapetis 40661e5698 Use CLIP template for clipping in the AGI engine
svn-id: r29854
2007-12-13 19:44:27 +00:00
Max Horn 0758feea62 cleanup
svn-id: r29792
2007-12-09 14:48:36 +00:00
Max Horn 1ed6cae306 Fix compiler warning
svn-id: r29761
2007-12-08 10:13:44 +00:00
Eugene Sandulenko 99acbe79af Move AGI engine back to custom line drawing routine as it caused regressions
svn-id: r29735
2007-12-06 12:46:29 +00:00
Filippos Karapetis ee5fc9675a Remove now obsolete comment
svn-id: r29729
2007-12-05 23:28:30 +00:00
Stuart George 6cf80bbe86 Fixes Mickey and Gold rush. Not the cleanest fix but tested and works
svn-id: r29658
2007-11-28 23:42:08 +00:00
Stuart George 44ac9cb7ae Fix regression from r28850 that rewrote all pattern data. Fixes agi v3 circle plot patterns
svn-id: r29653
2007-11-28 01:11:09 +00:00
Eugene Sandulenko 9e65796914 Switch AGI to common drawLine() as well
svn-id: r29636
2007-11-25 12:03:09 +00:00
Filippos Karapetis cd3f548407 Objects in Mickey's Space Adventure are shown correctly now
svn-id: r29612
2007-11-22 20:54:46 +00:00
Max Horn 982a2fce75 Refactore the AGI floodfill code
svn-id: r29600
2007-11-22 08:20:28 +00:00
Filippos Karapetis 634595e073 Cleanup
svn-id: r29592
2007-11-21 16:55:24 +00:00
Johannes Schickel b39ee7ec3c Fixed usage of Common::Stack.
svn-id: r29591
2007-11-21 00:41:51 +00:00
Filippos Karapetis f05712548e Oops, Common::Stack should be used instead of Common::FixedStack
svn-id: r29590
2007-11-21 00:39:12 +00:00
Filippos Karapetis e069ce6129 Common::FixedStack is used now for AGI flood fill routines
svn-id: r29589
2007-11-21 00:34:32 +00:00
Filippos Karapetis cee2a60569 Make sure that picture fill doesn't go out of the picture's bounds, since pre-AGI pictures have different dimensions
svn-id: r29034
2007-09-22 23:56:08 +00:00
Filippos Karapetis 7212d00454 Removed an unnecessary picture update when drawing crystal objects in Mickey
svn-id: r29004
2007-09-21 08:55:26 +00:00
Filippos Karapetis 381fba98c5 The animation of the crystals in Mickey is shown correctly now
svn-id: r29003
2007-09-21 08:41:27 +00:00
Eugene Sandulenko 341b8f1e67 Last pieces of Troll's Tale. Only missing thing is sound
svn-id: r28992
2007-09-20 21:55:15 +00:00
Eugene Sandulenko 14b89bcf46 Implement inventory in Troll's Tale
svn-id: r28987
2007-09-20 18:18:10 +00:00
Nicola Mettifogo 258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Filippos Karapetis 85b1bc594d Don't free the picture buffer inside decodePicture(). The buffer should (and is) freed from the functions that decodePicture() is being called from
svn-id: r28964
2007-09-19 08:21:42 +00:00
Eugene Sandulenko a8751e4d73 Fix picture drawing in Troll's Tale. Implement room navigation.
svn-id: r28946
2007-09-18 20:23:06 +00:00
Max Horn 3abc11611e Code formatting fixes
svn-id: r28945
2007-09-18 20:16:33 +00:00
Eugene Sandulenko 13a73a70b6 WIP for Troll's Tale
svn-id: r28939
2007-09-18 16:20:44 +00:00
Matthew Hoops be013e6c45 fix regression: free the picture data after decoding a PreAGI picture
svn-id: r28894
2007-09-11 20:17:36 +00:00
Matthew Hoops c1c7b5f563 PreAGI does not need an AGI resource loader, as it only needs to load pictures and doesn't use directories. So, this allows Winnie to decode pictures without using the loader
svn-id: r28893
2007-09-11 20:09:39 +00:00
Max Horn 127900b33c Fixed various warnings
svn-id: r28879
2007-09-08 11:17:13 +00:00
Filippos Karapetis 2d974a22d4 Objects in Mickey are shown correctly now. Also, reduced the places where the screen gets updated
svn-id: r28862
2007-09-06 01:18:13 +00:00
Eugene Sandulenko c5d18bf020 Move static variables to class.
svn-id: r28855
2007-09-05 19:35:30 +00:00
Filippos Karapetis 5a97b3d9be Some updates for Mickey:
- 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-05 15:43:56 +00:00