aboutsummaryrefslogtreecommitdiff
path: root/graphics
AgeCommit message (Collapse)Author
2006-08-27Renamed constant to reflect recent change of file name.Torbjörn Andersson
svn-id: r23777
2006-08-27Renamed graphics/animation.[cpp|h] to graphics/mpeg_player.[cpp|h] to be moreTorbjörn Andersson
consistent with dxa_player.[cpp|h]. (Though actually, "decoder" might be more accurate...) svn-id: r23774
2006-08-26Now that the cutscene handling in both BS1 and BS2 has been extended to playTorbjörn Andersson
DXA movies (the MPEG movies still work, of course), there is no longer any need for the MPEG decoder to handle sound and frame syncing. That is now the responsibility of the player, not the decoder. The obvious next step, then, would be to put that in a new player class, and have both BS1 and BS2 use that. Maybe FF as well. svn-id: r23757
2006-07-30Added explicit string equals/hash functors to a new header ↵Max Horn
common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case svn-id: r23634
2006-07-14More whitespace changes.Torbjörn Andersson
svn-id: r23496
2006-07-08Added support for DXA cutscenes, while still retaining support for the old MPEGTorbjörn Andersson
cutscenes and the "dummy" (subtitles and voice-over) mode. Several tweaks and cleanups were made in this process, and there may very well be regressions, but it should be stable enough to commit. svn-id: r23420
2006-06-28Correct docs for copyFrameToBuffer()Travis Howell
svn-id: r23336
2006-06-28Add patch #1504492 - DXA: New compression schemeTravis Howell
svn-id: r23333
2006-06-28Add eriktorbjorn's patch for DXA unification, with more changesTravis Howell
svn-id: r23332
2006-06-25Fixes a warning with VC++ 2005 Express.Oystein Eftevaag
svn-id: r23307
2006-06-24fix character clipping as mentioned by Marcus on the mailing list on 22 juneWillem Jan Palenstijn
svn-id: r23292
2006-06-24* Renamed config.mak to config.mkMax Horn
* Renamed common.rules to rules.mk * Removed explicit declaration of MODULE_DIRS in various spots (instead we let rules.mk compute it) svn-id: r23275
2006-06-21Move moveScreen to common surface functions for graphicsTravis Howell
svn-id: r23218
2006-06-20Applied patches from bug report #1276480, "GUI: Accented characters". ThisTorbjörn Andersson
changes quite a lot of things in the font renderer and the convbdf tools, so there may be regressions, but we want this feature for 0.9.0. svn-id: r23208
2006-06-13Let the [cursor] palette manager handle disableCursorPalette() too, to avoidTorbjörn Andersson
cursor glitch in at least some HE games which first set a cursor palette, and then disable it. (The disabled palette would be re-enabled after dismissing the GUI.) svn-id: r23081
2006-06-04Format the guifont[] data for better readabilityTorbjörn Andersson
svn-id: r22916
2006-06-03MPEG player fixes:Torbjörn Andersson
* Initialise _frameWidth and _frameHeight to prevent them from being undefined. * Fix BS2 subtitle positioning. (Fixes bug #1499916) * In BS2, copy the frame to the backend in 8-bit mode. * Fix compilation in 8-bit mode. BS2 subtitles aren't quite right in 8-bit mode, but I expect we want to re-design things a bit if we ever add DXA cutscenes. We can fix minor details then. svn-id: r22859
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