Andre Heider
64cba2878a
Do not call OSystem::grabPalette() for 16bit modes, when the result is not used anyway for those modes.
...
svn-id: r48733
2010-04-19 20:37:20 +00:00
Max Horn
bb26c04053
Fixing some warnings (with gcc 3.3.6)
...
svn-id: r48694
2010-04-17 23:19:52 +00:00
Robin Watts
9bb92eba9e
Fix for ARM Normal2xAspect scaler that was causing crashes when the screen
...
'shakes' (such as when the head/bomb goes of at the start of sam'n'max).
Was overwriting the end of the screen when asked to plot a non-multiple of
5 lines.
svn-id: r48690
2010-04-17 15:45:06 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Johannes Schickel
3f2057226f
Commit salty-horse's patch for VectorRendererSpec.cpp, which fixes the use of invalid C++.
...
svn-id: r48291
2010-03-18 21:45:27 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Sven Hesse
a1f1cdf820
Changing Imd::renderFrame() and Vmd::renderFrame() to properly clip the drawing area to prevent overdrawing without producing garbage output
...
svn-id: r48264
2010-03-15 22:24:11 +00:00
Sven Hesse
a9b7722df3
The frame coordinate cropping for IMDs is wrong, and should be unnecessary anyway, since Imd::renderFrame() should already check for overblitting. This fixes bug #2969904 ("GOB3: Graphical Glitch in finished cutscene")
...
svn-id: r48262
2010-03-15 17:44:59 +00:00
Johannes Schickel
40562798d6
Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
...
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.
svn-id: r48254
2010-03-13 21:55:49 +00:00
Sven Hesse
5886a0cc77
Removing a debug warning() and adding some comments
...
svn-id: r48236
2010-03-11 19:47:59 +00:00
Sven Hesse
31f980ffde
Adding support for the very primitive and simply early IMD format used in Fascination
...
svn-id: r48233
2010-03-11 06:14:52 +00:00
Robin Watts
99e032e954
Fix missing definition of gBitFormat.
...
svn-id: r48213
2010-03-09 01:20:23 +00:00
Johannes Schickel
6dacac2187
Conistenlty use USE_NASM instead of using HAVE_NASM in config.mk (this matches all the external library use too).
...
svn-id: r48208
2010-03-08 23:56:59 +00:00
Johannes Schickel
56bd4a6e18
Use a template for hq2x and hq3x instead of using #include and defines.
...
svn-id: r48197
2010-03-08 19:16:50 +00:00
Johannes Schickel
807f0223d7
Fix compilation.
...
svn-id: r48196
2010-03-08 19:07:31 +00:00
Max Horn
e90f074177
Add new aspect ratio scaler variant, based on the Normal2xAspect ARM code
...
svn-id: r48195
2010-03-08 10:32:45 +00:00
Max Horn
706769a3dc
Rewrite Normal1xAspect (untested, may be broken)
...
svn-id: r48194
2010-03-08 10:32:28 +00:00
Max Horn
569273040e
Remove redundant code
...
svn-id: r48193
2010-03-08 10:32:05 +00:00
Max Horn
2cdf8996f3
Rename PocketPCLandscapeAspect to Normal1xAspect and move it to
...
graphics/scaler/aspect.cpp
svn-id: r48192
2010-03-08 10:31:42 +00:00
Max Horn
0fc137cdf2
Rename PocketPCPortrait scaler to DownscaleHorizByThreeQuarters,
...
and move it to graphics/scaler.
svn-id: r48191
2010-03-08 10:31:09 +00:00
Max Horn
deec3408a1
Move some var declarations into '#ifdef USE_NASM'
...
svn-id: r48190
2010-03-08 10:30:39 +00:00
Max Horn
a558e60fec
SCALERS: Get rid of MAKE_WRAPPER; make RGBtoYUV internal
...
svn-id: r48189
2010-03-08 10:30:23 +00:00
Max Horn
78b6bed8db
Code formatting
...
svn-id: r48188
2010-03-08 10:29:52 +00:00
Max Horn
d239d5c2f8
SCALERS: Change 'bitformat' template params to 'colormasks';
...
get rid of some #defines
svn-id: r48187
2010-03-08 10:29:35 +00:00
Max Horn
28c6c600d4
Move some aspect ratio related stuff to graphics/scaler/aspect.h
...
svn-id: r48186
2010-03-08 10:29:00 +00:00
Max Horn
9fb27a26f8
Remove unnecessary #includes
...
svn-id: r48185
2010-03-08 10:28:14 +00:00
Max Horn
887f446b17
Document Normal2xAspect
...
svn-id: r48042
2010-02-13 11:57:23 +00:00
Arnaud Boutonné
aaa5849567
Revert r47944: useless debug messages, sorry for the wrong commit
...
svn-id: r47946
2010-02-06 22:54:20 +00:00
Arnaud Boutonné
ceba3a6ce9
Add an assert to avoid a crash when printing the character 0x00.
...
svn-id: r47944
2010-02-06 22:47:13 +00:00
Matthew Hoops
969a048619
Silence a valgrind warning. The sound buffer should be created with malloc and not new[].
...
svn-id: r47896
2010-02-05 04:27:51 +00:00
Matthew Hoops
19d3f5ad9b
Have SCI look through the patches directory (except in KQ6 where the patches in that directory are broken) to fix some GK1 Windows problems. Add the MSRLE codec to AVI (from DrMcCoy's Dark Seed II engine, with permission). GK1 Windows now will play the credits video.
...
svn-id: r47894
2010-02-05 03:29:04 +00:00
Max Horn
1565f14bc1
Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
...
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Arnaud Boutonné
1f79fd5788
Some more header modifications ("Graphic Adventure Engine" and the legal property paragraph)
...
svn-id: r47489
2010-01-23 22:50:24 +00:00
Torbjörn Andersson
4818467908
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
...
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
2010-01-22 19:05:02 +00:00
Pawel Kolodziejski
edadbb35be
synced code with scummvm trunk
2010-01-21 19:25:03 +00:00
Max Horn
dc5e08e623
Move raw audio flags from sound/mixer.h to sound/raw.h
...
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
557bb394de
Get rid of Mixer::FLAG_AUTOFREE.
...
Also fix several recently introduced new/delete vs. malloc/free mismatches.
svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
a44c6e4323
Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
...
svn-id: r47213
2010-01-09 22:37:10 +00:00
Sven Hesse
30e360f5c5
Yup, not checking for stereo sound was an accident here
...
svn-id: r47195
2010-01-09 03:55:09 +00:00
Max Horn
0cf53b025d
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
...
svn-id: r47180
2010-01-08 22:07:35 +00:00
Max Horn
474d49946f
Rename QueuedAudioStream to QueuingAudioStream
...
svn-id: r47179
2010-01-08 22:06:04 +00:00
Max Horn
7efba85064
Switch Tinsel, MADE and some of the video players to QueuedAudioStream
...
svn-id: r47178
2010-01-08 22:05:12 +00:00
Johannes Schickel
71b4b3dcba
- Adapt documentation, that keycolor in setMouseCursor may not exceed the maximum color value of the specified format.
...
- Change SDL backend to assert out on invalid keycolor values
In case we really need a way to specify "no keycolor" we need to
discuss on how to do it *properly*.
svn-id: r47123
2010-01-07 15:28:58 +00:00
Marcus Comstedt
40f9506163
The default keycolor for mouse pointers used to be 255.
...
This makes sense as a default for CLUT8 modes, but not really
for anything else. As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode. However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether. Engines which relied
on the old default of 255 have been updated to specify it explicitly.
svn-id: r47118
2010-01-07 15:07:36 +00:00
Torbjörn Andersson
9f2b65888a
Worked around what appears to be a bad JPEG image in the Masterpiece edition of
...
Myst. If I dump the image to file, I'm able to read it into other programs,
such as The GIMP, just fine. It seems that the only thing that's missing is the
End Of Image marker, and what everyone else does is to just fake one.
svn-id: r46795
2009-12-31 10:13:59 +00:00
Max Horn
d083e02215
Rename Common::Stream::readLine_NEW to readLine
...
svn-id: r46779
2009-12-30 23:00:55 +00:00
Fabio Battaglia
3a418c13a7
remove bad hackery caused by n64 port and avoid polluting StdioStream using a custom Stream subclass
...
svn-id: r46777
2009-12-30 22:56:19 +00:00
Fabio Battaglia
a108df30a7
Add Nintendo 64 port to trunk.
...
svn-id: r46773
2009-12-30 21:11:38 +00:00
Matthew Hoops
b775c03c29
Use the special Cinepak YUV2RGB function in the Cinepak decoder. This makes the Riven videos match up with the backgrounds better. Thanks, Torbjorn\!
...
svn-id: r46750
2009-12-30 15:29:52 +00:00