Commit Graph

153 Commits

Author SHA1 Message Date
Johannes Schickel
b4d0a8ba66 JANITORIAL: Enforce "} // End of namespace" with a single space after }. 2013-01-26 19:38:02 +01:00
Johannes Schickel
571fa94310 TESTBED: Fix "if" formatting. 2012-08-09 03:27:21 +02:00
Johannes Schickel
aec9b9e22a ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Ori Avtalion
aa0f307e06 ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
Silences the clang warning:

  static data member specialization of '_singleton' must
  originally be declared in namespace 'Common'; accepted as a C++0x
  extension [-Wc++0x-extensions]

Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.

Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
3c0c14b4b5 TESTBED: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:45 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Julien
55f46a1376 TESTBED: Fix GFXtests::HSVtoRGB() and caller
- update passed values and not local variables when s == 0
 - initialize r, g, b values in palette rotation test instead of passing unitialized variables
2011-06-07 03:59:12 -04:00
Julien
3e1c4f8e16 TESTBED: Specialize call to enable() in MidiTestSuite constructor 2011-06-07 03:56:57 -04:00
Julien
fe9ee92b25 TESTBED: Cleanup boolean use in enable() function for fs and midi tests 2011-06-07 03:56:56 -04:00
Julien
063814b15c TESTBED: Update some switch constructs for better control flow handling 2011-06-07 03:56:54 -04:00
Julien
04f4605f53 TESTBED: Rename error variable to err (was hiding error() symbol) 2011-06-07 03:56:52 -04:00
Julien
6362542836 TESTBED: Remove dead code, unused arguments and unreferenced symbols 2011-06-07 03:56:18 -04:00
Julien
08c01d116b TESTBED: Add const modifiers to some parameters/functions 2011-06-07 03:52:15 -04:00
Max Horn
91b889e2d3 COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette 2011-06-04 11:55:56 +02:00
Willem Jan Palenstijn
87070cbdc8 TESTBED: Remove another static and a confusing comment 2011-06-03 14:42:25 +02:00
Willem Jan Palenstijn
b16d6e8bb2 TESTBED: Get rid of static local variable
It's not only against our coding guidelines, but also breaks running the
mutex test multiple times. It may or may not also be responsible for a
MSVC9 build failure reported on IRC.
2011-06-03 14:15:39 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Max Horn
8aa6d25c77 ALL: centerd -> centered 2011-04-14 14:42:21 +02:00
Max Horn
2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
Max Horn
29847ea42d AUDIO: Change several fake MidiDrivers to MidiDriver_BASE subclasses
Many engines follow the advice in audio/midiparser.h and create a
"pseudo-MidiDriver" subclass. But MidiParser really only needs a tiny
subset of the MidiDriver capabilities, namely those found in
MidiDriver_BASE. So we try to subclass from that whenever possible; this
allows us to remove many stub methods, and enables further future
simplifications.
2011-03-23 15:25:47 +01:00
md5
8af0d35a5f TESTBED: Changed usage of PI to M_PI (normally defined in math.h) 2011-03-19 02:32:53 +02:00
md5
8cfcf53b88 TESTBED: Update rotatePalette() to use an RGB palette 2011-03-04 11:44:30 +02:00
Johannes Schickel
22489cbf8e TESTBED: Adapt documentation to the palette RGBA->RGB change. 2011-02-20 21:39:30 +01:00
Johannes Schickel
02f93b4aeb TESTBED: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:33 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files

svn-id: r54264
2010-11-16 10:11:57 +00:00
Max Horn
abe1959d36 COMMON: Simplify DECLARE_SINGLETON macro
This makes it possible to write
  DECLARE_SINGLETON(foo);
instead of
  DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.

svn-id: r54258
2010-11-16 08:23:13 +00:00
Max Horn
059944e59c COMMON: Push #include audiocd.h in system.h out to .cpp files
svn-id: r54148
2010-11-08 23:07:42 +00:00
Max Horn
82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).

The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.

svn-id: r54147
2010-11-08 22:53:36 +00:00
Max Horn
18d40017e8 ENGINES: Unify code layout of all ADParams instances
svn-id: r54105
2010-11-07 01:01:18 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Neeraj Kumar
a16832760b 1. Added ConfigParams Singelton class to eliminate use of configuration specific static variables.
2. Modified code to handle the change
3. Updated the previously merged obsolete copy of branch gsoc2010-testbed.

svn-id: r52973
2010-10-02 01:05:16 +00:00
Filippos Karapetis
6fed6a75d5 TESTBED: Fix warnings
svn-id: r52790
2010-09-18 09:52:05 +00:00
Neeraj Kumar
5c4f7ba267 TESTBED: fixed detection
svn-id: r52747
2010-09-16 12:45:09 +00:00
Matthew Hoops
161b2e6c79 TESTBED: Title capitalization and consistency
svn-id: r52686
2010-09-12 16:41:13 +00:00
Eugene Sandulenko
09ae34f4a4 TESTBED: Fix warnings
svn-id: r52685
2010-09-12 14:20:52 +00:00
Neeraj Kumar
81a646c9bd TESTBED: added a README file, some description fixes
svn-id: r52134
2010-08-16 22:04:15 +00:00
Neeraj Kumar
5e26238916 TESTBED: disable aspect ratio correction while running scaling tests
svn-id: r52111
2010-08-16 04:27:05 +00:00
Neeraj Kumar
7f68e84293 TESTBED: modified the Keyboard test Look-up table to include all alphanumeric characters
svn-id: r52084
2010-08-14 09:06:06 +00:00
Neeraj Kumar
0a7bda50cc TESTBED: formatting fix, deleted spaces/tabs at end of line
svn-id: r52081
2010-08-14 08:32:39 +00:00