aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
AgeCommit message (Collapse)Author
2017-11-12DREAMWEB: Use accurate memory reclamation for Ex transfersColin Snover
When the Ex memory regions are close to full, it is possible for the game to fail to purge objects and then crash with an OOM error even if it isn't actually out of memory. This patch calculates the amount of free memory truly needed when allocating to Ex memory to allow exactly the entire frame & text regions to be used, instead previously where a hard-coded amount of free space to maintain was used, which guaranteed that the entire memory region could not actually be used by the game. This change may be masking some underlying memory leak, or it may just be that near the end of the game the game naturally comes close to reaching the maximum memory region size. For the moment, I am assuming the latter. This commit also adds some assertion checks to the memory transfer functions to make sure the regions don't quietly overflow in other cases, since pickupConts performs transfers in a manner that doesn't ensure enough free memory exists for them to be successful. Fixes Trac#6820.
2017-10-07ENGINES: Remove default1x scaler flagColin Snover
This flag is removed for a few reasons: * Engines universally set this flag to true for widths > 320, which made it redundant everywhere; * This flag functioned primarily as a "force 1x scaler" flag, since its behaviour was almost completely undocumented and users would need to figure out that they'd need an explicit non-default scaler set to get a scaler to operate at widths > 320; * (Most importantly) engines should not be in the business of deciding how the backend may choose to render its virtual screen. The choice of rendering behaviour belongs to the user, and the backend, in that order. A nearby future commit restores the default1x scaler behaviour in the SDL backend code for the moment, but in the future it is my hope that there will be a better configuration UI to allow users to specify how they want scaling to work for high resolutions.
2016-04-14JANITORIAL: Reduce audio header dependenciesOri Avtalion
2014-02-28IMAGE: Move all ImageDecoders to image/Matthew Hoops
2014-02-19DREAMWEB: Some British to American englishStrangerke
2014-02-18DREAMWEB: Make GPL headers consistent in themselves.Johannes Schickel
2012-11-30DREAMWEB: Change various loop variables to uint, rather than size_t.D G Turner
This is partly for readability and partly to avoid any possible portability issues i.e. though they should be the same, size_t is defined by system headers, whereas uint is defined within our build system. Also, replaced a array size calculation with our ARRAYSIZE macro.
2012-11-30DREAMWEB: Fix usage of defines, rather than values for screen size.D G Turner
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-13DREAMWEB: Switch to the common PCX decoderFilippos Karapetis
2012-05-30DREAMWEB: Replaced vsync() function with waitForVSync().D G Turner
As a call to waitForVSync() was the only contents of vsync(), there should be no functional change.
2012-03-04DREAMWEB: Clean up the palette brightness codeFilippos Karapetis
2012-02-24DREAMWEB: Migrate remaining minor functions to using datafile prefix variable.D G Turner
Currently, the usages associated with savegames have been omitted. These will probably need a different prefix constant as it is likely foreign variants still use "DREAMWEB.*" for savegames, while using a different prefix for the datafiles. We may even migrate away from this naming convention as this causes savegame collisions when multiple language variants are present, which could cause issues. The usages in the Room members of the constant g_roomData structure have also been omitted, as the members are copied into the savegame format, thus replacing these and fixing other accesses is not trivial.
2012-02-24DREAMWEB: Add datafile name prefix to engine and modify showPCX() to it.D G Turner
This new variable removes the need for duplicates strings of the form "DREAMWEB.*" spread throughout the dreamweb engine, replacing them with a common const string on the engine holding the datafile name prefix. This will reduce binary size and it should also simplify adding support for foreign language variants, where the datafile name prefix is changed. To demostrate usage and prove this, showPCX() is migrated to using this.
2012-02-08DREAMWEB: Remove uneeded duplicate function "printUnderMon".D G Turner
2011-12-28DREAMWEB: Completely remove all of the runtime, and move everything into ↵Filippos Karapetis
DreamWebEngine Also, remove dead code (allocateMem/deallocateMem)
2011-12-28DREAMWEB: Move all saved variables to a GameVars structWillem Jan Palenstijn
The data segment is now completely unused.
2011-12-28DREAMWEB: Move all zoom-related functions to vgagrafx.cpp, and remove a lot ↵Filippos Karapetis
of unused global constants
2011-12-28DREAMWEB: Mass-move variables out of dataWillem Jan Palenstijn
This has been done by an automated search/replace, culling unused variables in the process. The remaining variables in data are all stored in savegames.
2011-12-27DREAMWEB: Remove unused functionsWillem Jan Palenstijn
2011-12-27DREAMWEB: Remove Extras segmentWillem Jan Palenstijn
2011-12-27DREAMWEB: Streamline graphics file accessWillem Jan Palenstijn
2011-12-27DREAMWEB: Remove mapStore segmentWillem Jan Palenstijn
2011-12-27DREAMWEB: Minor removal of runtime residue in vgagrafx.cppD G Turner
Also, minor formatting fixes.
2011-12-27DREAMWEB: Move all of the functions to DreamBase and remove stubs.hFilippos Karapetis
2011-12-26DREAMWEB: Remove dead codeFilippos Karapetis
2011-12-26Revert "DREAMWEB: Remove dead code and move most functions to DreamBase"Filippos Karapetis
This reverts commit 4c66f74b58e9a2c191f22a37f485047dd19be131. These functions aren't ready to be moved yet till the remaining two are finished, and they're so crossreferenced that the safest thing to do is revert this commit and break it down to smaller chunks
2011-12-26DREAMWEB: Remove dead code and move most functions to DreamBaseFilippos Karapetis
2011-12-26DREAMWEB: Combine transferMap and transferInvWillem Jan Palenstijn
2011-12-26DREAMWEB: Rename workToScreenCPP to workToScreenMax Horn
2011-12-26DREAMWEB: Remove some dead codeMax Horn
2011-12-23DREAMWEB: Move palettes out of buffersWillem Jan Palenstijn
2011-12-23DREAMWEB: Yet more things to DreamBaseMax Horn
2011-12-12DREAMWEB: Convert greyscaleSum, allPalette, dumpCurrentMax Horn
2011-12-12DREAMWEB: Move fadeDOS to vgafades.cpp, cleanupMax Horn
2011-12-11DREAMWEB: Remove DreamGenContext::closeFile, stop using kHandleMax Horn
2011-12-08DREAMWEB: Code formattingMax Horn
2011-12-08DREAMWEB: Move more stuff to DreamBaseMax Horn
2011-12-07DREAMWEB: Move showFrame() and some things using it to DreamBaseMax Horn
2011-12-07DREAMWEB: Move some more things to DreamBaseMax Horn
2011-12-07DREAMWEB: Some more workspace cleanupMax Horn
2011-12-07DREAMWEB: Turn workspace from a segment into a plain arrayMax Horn
2011-12-07DREAMWEB: Move generated constants out of class DreamGenContextMax Horn
2011-12-07DREAMWEB: Move more methods to DreamBase, cleanupMax Horn
2011-12-07DREAMWEB: Use symbolic constants and move functions to right filesWillem Jan Palenstijn
2011-12-07DREAMWEB: 'dumpkeypad', 'dumpsymbol', 'dumpsymbox', 'dumpzoom'Filippos Karapetis
2011-12-06DREAMWEB: Paranoia range checkMax Horn
2011-12-06DREAMWEB: Cleanup end of namespace commentsMax Horn
2011-12-05DREAMWEB: Remove unused 'openFile', merge duplicated 'getFilename'D G Turner
2011-12-05DREAMWEB: Untangle namespacesWillem Jan Palenstijn