aboutsummaryrefslogtreecommitdiff
path: root/graphics
AgeCommit message (Collapse)Author
2006-12-15Fix regression. It crashed with orignial DXA files.Eugene Sandulenko
svn-id: r24856
2006-12-14Only allocate _scaleBuffer when required.Travis Howell
svn-id: r24847
2006-12-14When drawing an interlaced frame, only clear every other line instead of theTorbjörn Andersson
entire buffer. Introduced a _drawBuffer pointer which points either to _scaledBuffer or _frameBuffer1. That way, we don't need to copy _frameBuffer1 every time we draw an unscaled frame. (Probably the most common case by far.) Adjusted the Broken Sword 1 DXA player for the second change. (It sneakily avoids copying each frame by using _drawBuffer directly.) svn-id: r24846
2006-12-11Add cyx's patch for endian issues in DXA playerTravis Howell
svn-id: r24844
2006-12-11Whitespace changesTravis Howell
svn-id: r24843
2006-12-11Adjust DXA scaling code for Broken Sword 1Travis Howell
svn-id: r24841
2006-12-11Fix typo in initial _scaleBuffer checkTravis Howell
svn-id: r24840
2006-12-11Add patch #1611503 - DXA: Improved encoder (filesize and speed)Travis Howell
svn-id: r24838
2006-10-08- Added dialog for selecting the theme to useJohannes Schickel
- Added runtime theme switching svn-id: r24213
2006-10-08fixed assert in isspace function because wrong variable type for chars when ↵Paweł Kołodziejski
they value is greater then 128. isspace take as "int" type param (at least in ms sdk) svn-id: r24210
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