aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/gfx.cpp
AgeCommit message (Collapse)Author
2019-05-05SCUMM: Original V0-V2 flashlight shape and size for MM/Zak (#10947, #10951)Robert Crossfield
2018-08-17JANITORIAL: Removing trailing spaces after int castsPaul Gilbert
2016-07-19SCUMM: Maniac V0: Implement 'simulator' for CPU lag (as the original engine ↵Robert Crossfield
occasionally ran at less than 60Hz). Fix call to 'getClosestPtOnBox', whcih was being passed X * V12_X_MULTIPLIER and Y * V12_Y_MULTIPLIER, but the box coordinates, where not
2016-07-17SCUMM: Maniac V0: Clear the text area of the screen on fade outRobert Crossfield
2014-03-30ALL: Resolve multiple clang warningsMax Horn
2014-02-18SCUMM: Make GPL headers consistent in themselves.Johannes Schickel
2013-08-26SCUMM: Fix COMI regression, after commit ↵Kirben
84d1d28373d782464bd46b10abd6b092f7eb6367.
2013-08-18SCUMM: Read the SMAP size, not the SMAP tag itselfTorbjörn Andersson
This will obviously make 'smapLen' a lot smaller in most cases, so there may be regressions. But I hope this is correct, though I don't know why the size is big-endian while the offset is little- endian.
2013-08-04SCUMM: Fix Loom (and some other graphics regressions).Johannes Schickel
These are regressions from c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038. They were caused by VirtualScreen::getPixels differing from Surface::getBasePtr and I accidently used the former in some cases in the conversion. I also fixed a bug in debugger.cpp which exchanged x and y.
2013-08-03SCUMM: Do not set Surface::pixels directly anymore.Johannes Schickel
2013-08-03SCUMM: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03SCUMM: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-01-02JANITORIAL: Fix or silence a couple of Clang analyzer warningsTorbjörn Andersson
Clang will produce plenty of warnings (most of them seem to be of the "if the stars align the wrong way, this may happen" variety), but I don't have the time or patience to look at all of them.
2012-06-16SCUMM: Get rid of casts on OSystem::copyRectToScreen calls.Johannes Schickel
2012-02-26SCUMM: Fix utilization of ARM assembly routines. This fixes bug #3494448.Johannes Schickel
The bug in question is: "SCUMM: Loom PCE Japanese broken on ARM". Thanks to fuzzie and wjp for this patch. If anything is broken after this I take no blame.
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-11SCUMM: replace "c64" with "v0" when it applies to both C64 and AppleII v0 ↵Tobias Gunkel
versions In addition some routines (e.g. the gfx ones) that are even used in v1.
2012-02-11SCUMM: _currentLights is v0 onlyTobias Gunkel
2011-08-26SCUMM: Implement proper Indy4 Amiga palette handling.Johannes Schickel
This should fix incorrect text colors in some scenes.
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-06-21COMMON: Move HerculesDimensions enum to SCUMM.Johannes Schickel
The enum is only used inside the SCUMM engine so it is rather pointless to keep it in common/util.h right now. Also if we really want it in some common place it should probably be better in graphics/ too.
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-18SCUMM: fixed messed up colors in 16bit HE gamesathrxx
(regression from 068b4a5351a5574dbfac6acff5776a0071f3f2dd)
2011-06-18SCUMM: make sure asmDrawStripToScreen is not called in 16bit modeathrxx
(fixes possible issue in LOOM PCE)
2011-06-17SCUMM: fix FM-TOWNS graphics output for ARM devicesathrxx
(changed behavior of USE_ARM_GFX_ASM define)
2011-06-15SCUMM: hopefully fix 16bit mode support for SCUMM FM-TOWNS games and LOOM ↵athrxx
PCE on Android This mostly reverts 5b7754e3f095eb8a469dd4b7de5a6379f8e13c27. Instead, we try to use other 16bit modes after 555 fails.
2011-05-25ALL: neighbour -> neighborMatthew Hoops
2011-05-13SCUMM: Move tmsk code into its own Gdi subclassMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-01Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".Johannes Schickel
For further discussion check here: https://github.com/scummvm/scummvm/pull/16 Conflicts: graphics/png.cpp
2011-04-23ARM: Global symbols get an underscore prefix on darwindhewg
apply same solution as for the sound/smush ARM asm here
2011-04-18SCUMM: Setup proper pixel format for virtual screen surfaces.Johannes Schickel
Thanks to Max for notifying me that SCUMM seems always to use RGB555.
2011-04-17ALL/GRAPHICS: Remove Surface::bytesPerPixel.Johannes Schickel
2011-04-17SCUMM: Prefer Surface::format over Surface::bytesPerPixel.Johannes Schickel
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-03-22SCUMM FM-TOWNS: cleanup (thx LordHoto)athrxx
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2010-11-05SCUMM/FM-TOWNS JAPANESE: fix out of bounds text drawingFlorian Kagerer
(could cause invalid memory access in MI1) svn-id: r54079
2010-10-23ALL: Fix indention (whitespaces -> tabs)Max Horn
svn-id: r53738
2010-10-20SCUMM/FM-TOWNS: minor graphics fixFlorian Kagerer
This fixes a graphics glitch that occured when leaving the Scumm Bar in MI1 for the first time (before the cut scene with LeChuck). svn-id: r53645
2010-10-17SCUMM/FM-TOWNS: more improvements to japanese font drawingFlorian Kagerer
- made use of LordHotos graphics/sjis code to reduce code duplication - japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.) svn-id: r53554
2010-10-05SCUMM/FM-TOWNS: disable new graphics code in DS portFlorian Kagerer
svn-id: r53033
2010-10-03SCUMM/FM-TOWNS: fix drawBox()Florian Kagerer
svn-id: r52991
2010-10-02INDY3/FM-TOWNS: fix intro graphics bugFlorian Kagerer
svn-id: r52987
2010-10-01SCUMM/FM-TOWNS: fix palette and other graphics issuesFlorian Kagerer
This commit should fix at least the following bugs/feature requests: #1032859, #1252088, #1055391, #1315968, #1315938, #1742106, #812891. The FM-Towns version of Scumm games use a mixed graphics mode with 2 layers (one with 32767 colors and one with 16 colors). Among other things I have added a screen output class which emulates this dual layer approach which allows specific hardware effects like enabling and disabling layers (e.g. in the voodoo priestess scene in MI1). Old savegames (saved before this update) will load, but you’ll encounter palette glitches in the verb/inventory screen, since the 16 color palette for layer 2 is not contained in your savegame. This will be true at least for version 5 games. Certain scene change actions (which require the verb/inventory part to be redrawn) might correct this (e.g. try looking at the treasure map in MI1 and closing it). Version 3 games should be okay, since they use a static text palette which is never changed and which will be reset after loading a savegame. This update requires a USE_RGB_COLORS setting for proper operation. 8 bit users will get a warning that they’ll have to expect palette glitches . Apart from that the engine in 8 bit mode should not only still work okay, but also benefit from some of the other (non palette related) improvements (e.g. bug #1032859 should be fixed even in 8 bit mode). Japanese font drawing hasn’t been improved much yet. This will be a separate task. svn-id: r52966
2010-08-25SCUMM: Fix bug #2702847 - PUTTZOO: Graphic glitches on dancing penguin.Travis Howell
svn-id: r52363
2010-08-23SCUMM: cleanupMax Horn
svn-id: r52295
2010-07-14Fixed typo in comment.Torbjörn Andersson
svn-id: r50889
2010-07-14Moved setTileData() into GdiPCEngine since that's the only class that uses it.Torbjörn Andersson
svn-id: r50888
2010-03-22Patch #2973283: SCUMM: Unneeded pointer dereferenceMax Horn
svn-id: r48360