aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/text.cpp
AgeCommit message (Collapse)Author
2016-03-23AGI: Fix inaccurate predictive dialog trigger rectMartin Kiewitz
Trigger rect is the rect, that the user needs to click to trigger the predictive dialog. Previously cursor char got drawn, rect started right afterwards In case cursor char is enabled, the rect will get adjusted accordingly now.
2016-02-28AGI: Add optional "pause, when entering commands" featureMartin Kiewitz
Shows a prompt window and pauses the game (just like original AGI did, but original AGI only did it in Hercules rendering mode).
2016-02-28AGI: Hercules rendering for game screenMartin Kiewitz
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-19AGI: Fix a tiny inaccuracy in string word wrapperMartin Kiewitz
Fixes one message box in Gold Rush during Stagecoach path, that wasn't wrapped correctly.
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-07AGI: Fix regression from stringWordWrap rewriteMartin Kiewitz
Space at the end of the string was handled inaccurately Fixes kq1 text scrolling bug #7021 Rewrite was done in commit efb65324688f20cc534a25312f558f9264125762
2016-02-05AGI: Rewrote stringWordWrap()Martin Kiewitz
Original code wasn't accurate
2016-02-04AGI: Add Atari ST system UI buttonsMartin Kiewitz
2016-02-04AGI: Add Apple IIgs system UI buttonsMartin Kiewitz
For Restart/Quit/Pause dialog
2016-02-03AGI: Message box mouse supportMartin Kiewitz
2016-02-03AGI: Rename WINDOWRESET to WINDOW_AUTO_CLOSE_TIMERMartin Kiewitz
2016-02-03AGI: Cycle event processing changedMartin Kiewitz
processEvents() renamed to processScummVMEvents() mainCycle() renamed to processAGIEvents() have.key now sets up an inner loop and calls processAGIEvents() to avoid any further cycle work processing
2016-02-03AGI: Make inner loop handlers consistentMartin Kiewitz
2016-02-03AGI: Implement messageBox() as inner loopMartin Kiewitz
Also remove _game.keypress, _game.msgBoxTicks
2016-02-03AGI: Fix regression of have.key changesMartin Kiewitz
original commit 8269a94bcd55200f7ae8aba00c7b6fd0d37b9a37 Now hopefully properly implemented. Adjusted a few more inaccuracies (we set v19 to 0, where we shouldn't have)
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-02-01AGI: Rename _game.lognum to _game.curLogicNrMartin Kiewitz
Also a bit of cleanup
2016-02-01AGI: implement predictive dialogMartin Kiewitz
2016-01-31AGI: getflag/setflag/etc. cleanupMartin Kiewitz
renamed getflag() to getFlag() renamed setflag() to setFlag() renamed flipflag() to flipFlag() preagi: renamed setFlag for this engine to setWinnieFlag
2016-01-31AGI: VM Var code cleanupMartin Kiewitz
Don't access variables directly, but through method Shouldn't include any functional differences Also changed several hardcoded values to the corresponding enums.
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
2015-05-19AGI: implement original sierra font, fix bug #6405Martin Kiewitz
custom font is still used for fanmade games i cannot test preAGI games, because I don't own those.
2014-02-18AGI: Make GPL headers consistent in themselves.Johannes Schickel
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2011-12-10AGI: Replace usage of 'goto'.D G Turner
2011-11-02AGI: Fix warningsEugene Sandulenko
2011-10-10AGI: Fixed bug #3420859 - "AGI: SQ0 - Scummvm Crash"Filippos Karapetis
The length requested in this case is 250, which overflows a char variable
2011-09-26AGI: Removed leftover dead codeFilippos Karapetis
2011-09-26AGI: Fixed invalid memory writes in wordWrapString()Filippos Karapetis
2011-09-26AGI: Fixed the line changing code, and added EOL checksFilippos Karapetis
The extra checks make sure that there isn't an extra line added at the end of the string. They're added as a precautionary measure
2011-09-26AGI: Cleanup, added some comments, removed an obsolete FIXMEFilippos Karapetis
2011-09-26AGI: Add FIXME for wordwrap buffer overflowWillem Jan Palenstijn
2011-09-26AGI: Fixed the actual cause of bug #3295652, and partially fixed bug #3080415Filippos Karapetis
2011-09-26AGI: Fix bug #3080041 - "AGI Mother Goose: White bar in intro"Filippos Karapetis
2011-09-25SCI: Added a workaround for bug #3295652 - "AGI: (Fan) SQ0: Animation ↵Filippos Karapetis
overdraws some of the text window" and removed some duplicate code
2011-09-25AGI: Fixed EOF in text.cppFilippos Karapetis
2011-09-25AGI: Resolved an old FIXME concerning OOB accessFilippos Karapetis
2011-06-18AGI: Replace vsprintf by Common::String::vformatMax Horn
2011-05-17AGI: CleanupWillem Jan Palenstijn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-14ALL: colour -> colorMax Horn
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2010-06-15Added the same quit/restart test to print() as we have in so many other places.Torbjörn Andersson
This makes it easier to quit the game during the text box in the King's Quest 3 into, and probably other places as well. svn-id: r49881
2010-06-15AGI: Fix bug #2960563.Eugene Sandulenko
Bug #2960563: "AGI: (Fan) SQ0: Text input field overdraws Text window". Now our text wrapping code matches original. svn-id: r49736
2010-06-15AGI: Fix bug #2959630.Eugene Sandulenko
Bug #2959630: "LSL1: Security in blackjack" fixed by partially reverting r41241. Do not clear prompt without on disabling input. svn-id: r49732
2010-06-15AGI: add more status-related debug output.Eugene Sandulenko
svn-id: r49731
2009-10-21Fix another regression that didn't append data in safeStrcat.Matthew Hoops
svn-id: r45296
2009-10-21Fix a regression in agiSprintf.Matthew Hoops
svn-id: r45295