aboutsummaryrefslogtreecommitdiff
path: root/graphics
AgeCommit message (Collapse)Author
2006-05-27Should use delete[] instead of delete here, too. (I knew where the cursorTorbjörn Andersson
manager code was copied from. :-) svn-id: r22675
2006-05-27delete[] instead of deleteWillem Jan Palenstijn
svn-id: r22673
2006-05-25The GUI never asked for the cursor to be visible. I'm not sure why that used toTorbjörn Andersson
work before the cursor manager. Oh well, the launcher should have a visible cursor again, knock on wood. svn-id: r22641
2006-05-25Set and show/hide mouse cursors through a "cursor manager" (analogous to theTorbjörn Andersson
recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639
2006-05-25Cleanup.Torbjörn Andersson
svn-id: r22635
2006-05-25Fixed stupid error in replaceCursorPalette().Torbjörn Andersson
svn-id: r22629
2006-05-25Fixed comment to make it less obvious where I copied the general structure ofTorbjörn Andersson
the palette manager from. svn-id: r22628
2006-05-21Make it so that if the new cursor palette to be set has zero colours, theTorbjörn Andersson
cursor palette is disabled. Also, when replacing a cursor palette, try to re-use the old palette buffer, as a minor optimization. (Not that these functions should need any optimization, but it's simple and shouldn't hurt.) svn-id: r22554
2006-05-21Oops, I guess I never got around to fully implement replaceCursorPalette().Torbjörn Andersson
svn-id: r22552
2006-05-20Forgot to set g_initialized to true.Torbjörn Andersson
svn-id: r22544
2006-05-20After the GUI has finished, restore the old cursor palette (if any). For thisTorbjörn Andersson
to work, cursor palette now has to be set using the new "palette manager". See graphics/paletteman.cpp svn-id: r22543
2006-05-18Renamed screenChanged() to handleScreenChanged().Torbjörn Andersson
svn-id: r22518
2006-05-18Allow changing scaler while playing MPEG cutscenes.Torbjörn Andersson
svn-id: r22515
2006-05-17- Heavily modified patch #1214784: "Disable overlay scaling"Eugene Sandulenko
- Eriktorbjorn's patch from same tracker item for scaling sword1/2 cutscenes is applied as is. It lacks resolution switch on-the-fly. - GUI widgets are repositioned on the fly and use most space, even aspect ratio corrected screen is used without scaling - Heavy tesing is required, but works for me in all cases except for bug #1483272: "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more work. - I probavly broke some backend or two svn-id: r22505
2006-05-09- Updated MSVC8 project filesEugene Sandulenko
- Renamed base/options.cpp to base/commandLine.cpp because of conflict with gui/options.cpp which sit in same directory in MSVC builds - Moved AudioCDManager singleton declaration outside of Audio namespace - Fixed numerous MSVC warning of potentially uninitialized variables and int <-> bool conversions. svn-id: r22397
2006-04-29Moved the AudioCDManager as well as class AudioStream and its (standard) ↵Max Horn
subclasses to namespace Audio svn-id: r22231
2006-04-21Implementation and declartion in intern.h differed. Changed so both is using ↵Lars Persson
the same datatype. svn-id: r22074
2006-04-19Fix ASM HQ routines, because RGBtoYUV and LUT16to32 are on heap now.Eugene Sandulenko
svn-id: r22041
2006-04-17Make use of triple-interpolation function in SuperEagel (should save a few ↵Max Horn
cycles... not that it really matters :) svn-id: r21985
2006-04-17Replace interpolate32 calls by interpolate16 calls (as we only work on ↵Max Horn
single pixels here currently) svn-id: r21983
2006-04-17Simple optimizationMax Horn
svn-id: r21982
2006-04-17Renamed and merge some of the pixel interpolation functions (the names still ↵Max Horn
could be better) svn-id: r21981
2006-04-17Allocate LUT/YUV tables on the heapMax Horn
svn-id: r21971
2006-04-17Modify InitLUT to make use of ColorMasks, making it easier to add support ↵Max Horn
for other color modes eventually. This also fixes the computation of LUT16to32 which so far always assumed 565 mode. svn-id: r21970
2006-04-17Fixed (A)RGBToColor templatesMax Horn
svn-id: r21969
2006-04-17Since we define alpha value 255 to mean 'opaque', or T::kAlphaMask into the ↵Max Horn
result of RGBToColor svn-id: r21968
2006-04-17Add color conversion functions based on ColorMasks, to demonstrate how this ↵Max Horn
would work svn-id: r21967
2006-04-17Moved ColorMasks to their own new header graphics/colormasks.h, so that both ↵Max Horn
the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes svn-id: r21966
2006-04-17cleanupMax Horn
svn-id: r21964
2006-04-17Removed my Altivec version of the hqx blitters, since it (a) didn't work ↵Max Horn
with newer GCC versions, (b) speed was improved on some systems, but actually slower on others, and (c) even on my old 400 Mhz G4 hqx is fast enough w/o it svn-id: r21961
2006-04-16- Moves Graphics::loadFont to Graphics::NewFont::loadFontJohannes Schickel
- adds code for caching of fonts (just for Graphics::NewFont) - implements cache using in the modern theme for custom fonts - adds cache file for current normal font in the theme zip file svn-id: r21952
2006-04-15cleanupMax Horn
svn-id: r21921
2006-04-14- implements .bdf font loader based on convbdf (sure could have some clean up)Johannes Schickel
- adds three different font styles to the themes (normal, bold (default one), italic) - implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section) - changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though) - extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName) - adds the font style constans to the builtin constants for the evaluator) svn-id: r21868
2006-04-14Changed File::open to take a Common::String as file name parameterMax Horn
svn-id: r21867
2006-04-14Use const keyword to help compiler optimize codeMax Horn
svn-id: r21866
2006-04-04Don't use HAVE_CONFIG_H / config.h directly, use scummsys.h insteadMax Horn
svn-id: r21605
2006-04-02With this change, backends are now responsible for instantiating their ↵Max Horn
OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently) svn-id: r21557
2006-03-29Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 ↵Max Horn
to ~250). Many greetings to eriktorbjorn, and have fun recompiling. svn-id: r21500
2006-03-15* 'make bundle' now copies the default theme files into the bundle.Oystein Eftevaag
* Common::File will now look inside the application bundle on MacOS X for a file if it can't find it anywhere else (so it'll find default-theme.ini and .zip) * Cleaned up some #ifs. svn-id: r21308
2006-03-14Adds support for building on Intel Macs, using a modifiedOystein Eftevaag
version of patch 1448395 by Aubin and some of my own changes. Notably: * Two elements of a struct in backends/midi/quicktime.cpp needed to be forced to BE. * NASM set to build Mach-O binaries * configure now checks for Altivec support on Darwin hosts, instead of assuming it. Altivec support can also be disabled (not 100% sure if t his is actually needed, but might be handy for crosscompiling). * The aliasing of the symbols contained in the .asm files done on Windows were also needed on MacOS. Note that while the asm code is properly compiled and linked in, HQ2/3x support will still not work properly on Intel macs if NASM is enabled. svn-id: r21280
2006-03-06Fixed compilation, this could be used with all systems (?)Chris Apers
svn-id: r21112
2006-03-04define int types for msvc to allow compile mpeg2 library. msvc does not ↵Paweł Kołodziejski
fully conform C99 svn-id: r21073
2006-02-25Fix bug #1436178 (ALL: int8_t in graphics/animation in conflict with ISO99 C)Max Horn
svn-id: r20877
2006-02-20Moved fonts to a new dir graphics/fontsMax Horn
svn-id: r20800
2006-02-20Fixing up my previous commit: finished moving common/scaler* to graphicsMax Horn
svn-id: r20798
2006-02-20Moved common/scaler* to graphics/Max Horn
svn-id: r20797
2006-02-12Reduced data duplication in module.mk files; added module.mk files for null ↵Max Horn
and x11 backends; added engines/module.mk svn-id: r20584
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20519
2006-02-07Removed .cvsignore filesMax Horn
svn-id: r20424
2006-02-03fixes allow compile with emsvc4 againPaweł Kołodziejski
svn-id: r20355