Commit Graph

491 Commits

Author SHA1 Message Date
Joost Peters
2b8eba751e Honour alpha bits in applyScreenShading() (used in "add game", "edit game" and "options" dialogs).
svn-id: r38478
2009-02-18 13:48:14 +00:00
Joost Peters
22340b6c3d Use 4444 overlay on PSP (instead of 1555).
svn-id: r38475
2009-02-18 13:28:52 +00:00
Vicent Marti
a2c9faed29 Fixed bug #2609755 (GUI memory corruption).
svn-id: r38447
2009-02-17 20:50:30 +00:00
Johannes Schickel
b8d2c41cdd Remove VECTOR_RENDERER_FORMAT check and related documentation.
svn-id: r38405
2009-02-17 12:20:40 +00:00
Johannes Schickel
2bb7b23748 Change formatting to match our code guidelines.
svn-id: r38382
2009-02-16 21:19:02 +00:00
Johannes Schickel
11862f3db3 Cleanup.
svn-id: r38381
2009-02-16 21:17:14 +00:00
Johannes Schickel
0d927db838 Removed obsolete FIXME.
svn-id: r38380
2009-02-16 21:06:28 +00:00
Lars Persson
c4fb8cf4f1 Fixed VectorRenderSpec for no fancy theme!
svn-id: r38377
2009-02-16 19:07:41 +00:00
Max Horn
f86403ed22 Attempt to fix compilation problems on MSVC 7 (I wonder why it compiled elsewhere, actually ;)
svn-id: r38314
2009-02-15 22:14:04 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Filippos Karapetis
781d7da6b1 Applied my patch for the BS1/2 video player
- Support for the MPEG2 videos in BS1/2 has been dropped. The MPEG2 videos were lossy, and support for them complicated the code a lot.
- Support for the non-existing enhanced MPEG cutscene packs for BS1 has been dropped. As a consequence, the credits player and the splitted audio stream players used for these packs has been removed
- The original Smacker videos for both games are now supported, using our Smacker player (which is based off publically available specs and FFMPEG)
- The animations now use the common video player code. Both the Smacker videos and our DXA video packs are supported

svn-id: r38236
2009-02-15 13:29:48 +00:00
Joost Peters
7fc7216175 add assert(g_system) for backends that call InitScalers() from their OSystem ctor (at which point g_system is still NULL)
svn-id: r36332
2009-02-14 18:16:21 +00:00
Max Horn
4dbbbc1358 GUI: Fixed long-standing bug in calcGradient (gradients look a bit better now)
svn-id: r36311
2009-02-13 19:24:32 +00:00
Max Horn
b1038f97a2 Changed DotMatrix to use pixelformat instead of bitformat/colormasks
svn-id: r36310
2009-02-13 19:22:52 +00:00
Max Horn
aa25651331 cleanup
svn-id: r36309
2009-02-13 19:00:46 +00:00
Max Horn
d13acd8daf cleanup
svn-id: r36289
2009-02-13 00:11:16 +00:00
Max Horn
a351648358 Rewrote VectorRendererSpec & VectorRendererAA to use a Graphics::PixelFormat, instead of relying on color masks -> should fix bug #2537212, possibly at a slow down on low-end systems (a regression which we certainly could resolve, though). Note: I left the PixelType template param in on purpose, in case we want one day to compile in both 16 and 32 bit pixel support simultaneously
svn-id: r36288
2009-02-13 00:03:13 +00:00
Max Horn
5f634212aa GUI renderer: some cleanup; added comment on sqrt implementation (on my system, plain sqrt is 50x faster -- on highest optimization levels, otherwise it is something like 200x)
svn-id: r36277
2009-02-12 04:34:57 +00:00
Joost Peters
d23474fcf9 1555 is ABGR (not ARGB)
svn-id: r36257
2009-02-10 23:38:07 +00:00
Filippos Karapetis
f1ebbebd7b Silenced MSVC warning (MSVC is being silly here...)
svn-id: r36185
2009-02-01 20:52:53 +00:00
Marcus Comstedt
f90e4545c2 Merged r36175 from branch-0-13-0:
Fixed alpha blending in the UI dialogs by adding alpha
computation to the blendPixelPtr() function.  To minimize
impact, pre-multiplied alpha is assumed, meaning that the
blending of the R, G and B components is the same both
with and without hardware alpha.

svn-id: r36177
2009-02-01 14:56:19 +00:00
Max Horn
e354c4b4f2 Got rid of VectorRenderer::surfacePitch() & VectorRenderer::bytesPerPixel(): the latter was not used, for the former it is silly to go through a virtual method to compute that value; all in all, this code performs too many unnecessary divisions ;)
svn-id: r36151
2009-01-30 16:18:58 +00:00
Max Horn
f465abb75d Removed unused area convolution code from VectorRenderer
svn-id: r36148
2009-01-30 15:43:45 +00:00
Max Horn
341bc64aaf do not include common/debug.h from common/util.h
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Max Horn
1c0d2c5ab9 Fixed hq2x ASM scaler
svn-id: r36115
2009-01-27 21:44:24 +00:00
Max Horn
b6c17e396b Re-enabled ASM versions of HQx scalers (oops)
svn-id: r36099
2009-01-27 14:48:49 +00:00
Max Horn
e338205066 Added new interpolate16_1_1_1_1 func, got rid of interpolate32_1_1_1_1
svn-id: r36090
2009-01-27 01:46:29 +00:00
Max Horn
379fe274df Replaced small lookup table in 2xsai by direct computation
svn-id: r36089
2009-01-27 01:35:21 +00:00
Max Horn
97153f9c3b Removed interpolate16_2 and interpolate16_3
svn-id: r36088
2009-01-27 01:29:22 +00:00
Max Horn
9809709468 Speed up HQ2x/HQ3x C++ version a bit (about 20% faster with -O3 on my system)
svn-id: r36087
2009-01-27 01:23:04 +00:00
Max Horn
153b32391f New code for interpolate32_1_1 overflowed in 565 mode, so reverting to the old code (with some variable name changes to match the other interpolators)
svn-id: r36086
2009-01-27 00:55:28 +00:00
Max Horn
4098ff66aa Removed use of LUT16to32 in HQx asm versions, replacing some MMX code with 'plain' x86 code. Advantage: got rid of a 256kb table (reduces cache load, so over here the code is about as fast as before; in particular, since the affected interpolators are not used that often, it seems). Moreover, the new code is more accurate than the old ASM code, which actually differed from what our C++ HQx did (sacrificing precision for speed, i.e., cheating ;-)
svn-id: r36078
2009-01-26 18:31:06 +00:00
Max Horn
2042c6d570 Slightly improved interpolate32_1_1
svn-id: r36075
2009-01-26 16:45:21 +00:00
Joost Peters
508f254ff7 error out when no renderer was created due to unknown/unsupported PixelFormat
svn-id: r36074
2009-01-26 16:39:05 +00:00
Gregory Montoir
7f594fa21d TUCKER: modified flic playback to make use of dirtyrects
svn-id: r36060
2009-01-25 12:10:06 +00:00
Filippos Karapetis
ed0bca5b36 Fixed compilation
svn-id: r36054
2009-01-25 09:13:23 +00:00
Max Horn
dd586e0e20 Renamed lowBits -> kLowBitsMask and highBits -> kHighBitsMask
svn-id: r36049
2009-01-25 04:29:25 +00:00
Max Horn
b93db9f30f HQX: Removed some more branches (like in my previous commit) from interpolation macros (they are meant to speed up things, but in reality cause a slowdown -- branches are expensive on modern CPUs)
svn-id: r36047
2009-01-24 23:27:21 +00:00
Max Horn
16e7a7cd30 Turned two vars of the HQ2x/HQ3x ASM implementation into global vars, to make it possible to adjust them for 555 vs. 565 mode (555 mode is still a bit buggy, due to the interpolation code they use)
svn-id: r36046
2009-01-24 23:06:58 +00:00
Max Horn
ab5e3db9e3 Moved 565 mode specific bits of HQ2x/HQ3x asm to 'variables'
svn-id: r36034
2009-01-24 06:26:43 +00:00
Max Horn
5556fc7f72 Changed Graphics::ImageDecoder to allow custom PixelFormats
svn-id: r36026
2009-01-23 23:50:54 +00:00
Max Horn
4d5702606f Remark that the HQnx ASM code only works in 565 mode
svn-id: r36025
2009-01-23 22:56:14 +00:00
Max Horn
04517f17ad Added some comments to hq2x/hq3x asm code
svn-id: r36024
2009-01-23 22:05:40 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
6f10ef2150 Made InitLUT use a PixelFormat instead of a ColorMask
svn-id: r36008
2009-01-23 02:29:32 +00:00
Johannes Schickel
adf15c1007 Added an '!=' operator to PixelFormat.
svn-id: r35998
2009-01-22 15:53:05 +00:00
Max Horn
d5d7175691 Speed up HQ2x/HQ3x C versions by reordering tests in diffYUV: most likeliest to be taken now is first, least likely is last
svn-id: r35996
2009-01-22 06:41:57 +00:00
Max Horn
0034aa3b9c Got rid of several occurrences of gBitFormat
svn-id: r35995
2009-01-22 04:59:09 +00:00
Max Horn
17f5d4eeea Got rid of gBitFormat in thumbnail scaler code (and even simplified it in the process)
svn-id: r35994
2009-01-22 04:45:19 +00:00