Commit graph

47 commits

Author SHA1 Message Date
Martin Kiewitz
7a169c90f6 AGI: Hercules rendering for game screen 2016-02-28 11:23:31 +01: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
9f59b5ed7c AGI: Fix priority band handling
- Fix saving/loading priority bands table. Now saving the actual raw
  data
- Now also saving the flag, that defines if the priority table got
  modified by scripts
- For older saved games it will try to figure out the state of that
  flag
- Blocking set.pri.base for AGI below 2.936
- set.pri.base was actually introduced in 2.936 and not AGI3
- The set.pri.base bug was present in 2.936 as well
- Saved games created between the graphics rewrite and this
  commit may have priority issues for games, that used AGI2.936+
2016-02-13 20:42:30 +01:00
Martin Kiewitz
808d622ed5 AGI: Remove unused method 2016-02-10 20:14:02 +01:00
Martin Kiewitz
ccf328d725 AGI: Cleanup 2016-02-10 19:54:03 +01:00
Martin Kiewitz
f09a15f276 AGI: Render mode Macintosh added
Palette + mouse cursor + box frame color only atm
Thanks to wjp for gamma correction
Not sure, if our current color adjustment is correct
Should be checked by using actual hardware
2016-02-05 16:41:02 +01:00
Martin Kiewitz
f6c9cffa26 AGI: Add different window frames for Macintosh
Also work on drawCharacter code for SystemUI usage
2016-02-03 22:47:58 +01:00
Martin Kiewitz
0f026c7766 AGI: Add different window frames for Apple IIgs
Only slightly different than on PC
2016-02-03 22:25:52 +01:00
Martin Kiewitz
920bea0fd9 AGI: add drawCharacterOnDisplay() 2016-02-02 23:27:13 +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
fd9c46831d AGI: remove timer hack, implement in game timer
in game timer is now updated, when scripts read in game timer
VM variables and during main loop. ScummVM total play time feature
is used for it. Game cycle syncing is done at the same time.
2016-01-31 20:53:36 +01:00
Martin Kiewitz
ccfd870c81 AGI: adjust mouse pos using render start Y
instead of having it hardcoded.
2016-01-29 14:03:47 +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
Martin Kiewitz
a709596b48 AGI: implement original sierra font, fix bug #6405
custom font is still used for fanmade games
i cannot test preAGI games, because I don't own
those.
2015-05-19 12:39:39 +02: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
Johannes Schickel
021ecca3b0 AGI: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:31 +01:00
Eugene Sandulenko
8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Eugene Sandulenko
1a321a2064 Cleanup
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
194ab100c7 Fix bug #2434187: "SQ2: message not displayed, or vanishes too quickly"
svn-id: r41240
2009-06-06 17:39:42 +00:00
Max Horn
402a3dbbe3 cleanup
svn-id: r29617
2007-11-23 10:51:16 +00:00
Eugene Sandulenko
38d8105e4e Add support for Russian versions of AGI games
svn-id: r29056
2007-09-23 16:43:43 +00:00
Filippos Karapetis
d042f82a8a Minimize changes to the mouse cursor's palette
svn-id: r29002
2007-09-21 07:54:43 +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
8ccd247a74 Only change the cursor palette when the mouse hovers over a hotspot in Mickey, not the whole cursor. This is a much faster operation, which also gives better results
svn-id: r28860
2007-09-05 21:57:57 +00:00
Filippos Karapetis
2dd4f61b5e Text in Mickey is shown correctly now. Also, removed an obsolete function declaration of PutPixel()
svn-id: r28835
2007-09-02 22:47:53 +00:00
Eugene Sandulenko
7f08865ec5 An early WIP of PreAGI (TrollVM) support
svn-id: r28787
2007-09-01 14:58:46 +00:00
Kari Salminen
16529e58e6 Added 3 different Amiga AGI palettes (From oldest to newest). Changed initPalette so its easier to enable the usage of those palettes later.
svn-id: r28114
2007-07-15 21:33:28 +00:00
Kari Salminen
6e77abc07f Add Amiga-style menus (FR #657645). Used in Amiga-rendering mode.
svn-id: r28015
2007-07-10 18:32:24 +00:00
Kari Salminen
969df42d01 Make AGI's button drawing use AgiButtonStyle. Doesn't use Amiga-style yet. It's next.
svn-id: r28014
2007-07-10 18:08:35 +00:00
Kari Salminen
ceca6a82f1 Added Amiga-style mouse cursor. Used with Amiga-render mode.
svn-id: r27938
2007-07-06 12:53:58 +00:00
Kari Salminen
1332a69b07 Tidied up and simplified AGI mouse cursor management.
svn-id: r27937
2007-07-06 12:42:50 +00:00
Kari Salminen
4d7d3d96f5 Removed obsolete code for setting transparent debugging console colors.
svn-id: r27714
2007-06-25 18:32:40 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Eugene Sandulenko
989f7b67cb - Save AGIPAL resource number properly
- Move GfxMgr constructor to .cpp file

svn-id: r26278
2007-03-22 22:29:00 +00:00
Matthew Hoops
a722b767a8 - adding support for saving AGIPAL games
- adding debug comment when using a new AGIPAL palette
- changing so that only pal.101-109 files are used and not pal.100, as AGIPAL starts at 101

svn-id: r26277
2007-03-22 22:03:21 +00:00
Matthew Hoops
080a76503b adding AGIPAL support (for changing palettes in some fan games) Patch:1684685
svn-id: r26270
2007-03-21 20:13:40 +00:00
Paweł Kołodziejski
b47eb95316 Formating names in source code
svn-id: r25101
2007-01-16 12:40:51 +00:00
David Symonds
fc2454556a Another set of unused hires code bites the dust.
svn-id: r25036
2007-01-06 17:21:33 +00:00
David Symonds
61d741514e Extended text rendering code to allow "checkerboarding", and switch menu code
to using this checkerboard effect for disabled menu items (this is how Sierra's
interpreter works).

svn-id: r25024
2007-01-06 05:11:41 +00:00
Paweł Kołodziejski
1d3ca2e409 first phase of objectisation of agi engine
svn-id: r24808
2006-12-06 19:27:02 +00:00
Eugene Sandulenko
da3e724a99 Predictive input for AGI engine. To Do:
- Multitap
- scummvm.ini-based dictionary path
- speedup dictionary loading

svn-id: r24635
2006-11-06 13:19:12 +00:00
Torbjörn Andersson
4a583216fb Fixed most - not all - GCC warnings.
svn-id: r22614
2006-05-24 19:51:37 +00:00
Torbjörn Andersson
1bec2024a6 From what I understand, the __ prefix is generally reserved for system headers,
so I've removed most of them. There's still some in list.h, but that should
probably be replaced by our own list handler some day.

svn-id: r22611
2006-05-24 14:25:42 +00:00
Paweł Kołodziejski
20cf952b68 removed defines USE_PCM_SOUND, AGDS_SUPPORT, USE_HIRES
svn-id: r22609
2006-05-24 14:00:08 +00:00
Paweł Kołodziejski
a62c66bea1 strip one level of func
svn-id: r22601
2006-05-24 08:56:40 +00:00
Paweł Kołodziejski
107073537e imported AGI engine
svn-id: r22588
2006-05-23 23:43:52 +00:00