482 Commits

Author SHA1 Message Date
Colin Snover
51329c0dc6 ALL: Fix misuse of comma operator 2017-11-10 09:57:03 -06:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Paul Gilbert
28442d47c4 CRUISE: Add explicit fall through comments to switch 2017-08-06 22:09:14 -04:00
Torbjörn Andersson
462f1c9859 JANITORIAL: Silence more GCC 7 warnings
There were all flagged as intentional fall throughs. I simply changed
the comments to something GCC would recognize.
2017-08-06 12:26:05 +02:00
Daniel Plakhotich
fa56325aa2 CRUISE: Fix font space width 2016-12-10 13:12:41 +02:00
Daniel Plakhotich
3f71e2456c CRUISE: font: Don't overwrite transparent pixels 2016-12-09 19:59:19 +02:00
Eugene Sandulenko
fcc94778e4 CINE: Remove useless code.
var_2 used to be always NULL after while() loop, thus, the first if()
condition is always false.
2016-05-17 19:11:07 +02:00
Eugene Sandulenko
775b615fdd CRUISE: Safer string manipulation 2016-05-11 12:30:50 +02:00
Eugene Sandulenko
28deb13d4e CRUISE: Plug another memory leak 2016-05-09 14:40:56 +02:00
Eugene Sandulenko
9fd172cba6 CRUISE: Plug memory leak 2016-05-07 10:29:49 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Johannes Schickel
3aecd8ef2a ENGINES: Make variable names of ADGameDescription conform to our guidelines.
gameid     -> gameId
guioptions -> guiOptions
2016-03-08 19:01:38 +01:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
a8d9478e46 CRUISE: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
6665f81c25 CRUISE: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Matthew Hoops
bed9da8b9d AUDIO: Remove all AudioStream access to OPL 2015-07-07 20:19:47 -04:00
Matthew Hoops
3c7c217f44 CRUISE: Use the built-in OPL timer 2015-07-07 20:19:43 -04:00
Matthew Hoops
2e8f9dcec9 AUDIO: Remove the sample rate configuration from the OPL code 2015-07-07 20:19:42 -04:00
Matthew Hoops
f1f29302f5 AUDIO: Remove the legacy OPL API 2015-07-07 20:19:42 -04:00
Strangerke
8dbfcc37fb CRUISE: Add a safeguard to avoid a potential null pointer derefenrece 2014-06-15 18:19:11 +02:00
Strangerke
51184eab9d CRUISE: Remove some useless variables, use a boolean for a variable 2014-06-10 07:25:35 +02:00
Strangerke
b0685aebc6 CRUISE: Initialize some variables 2014-06-09 18:11:18 +02:00
Strangerke
10f65a3c6f CRUISE: some more renaming, remove another useless variable 2014-06-09 18:01:04 +02:00
Strangerke
58bfb3b435 CRUISE: Remove a couple of useless variables 2014-06-09 17:57:14 +02:00
Strangerke
ff93aef6ec CRUISE: Initialize some variables in the contractor, change some variables to boolean 2014-06-09 17:53:27 +02:00
Johannes Schickel
9e4dfe556e CRUISE: Directly use assert.
This fixes an ASSERT macro redefinition when compiling the Symbian port.
See bug #6622 "SYMBIAN: CRUISE: warning: `ASSERT' redefined".
2014-06-08 17:57:02 +02:00
Strangerke
3f6d034c8a CRUISE: Add a safeguard, some minor rework in BackgroundIncrust 2014-06-07 17:05:01 +02:00
Strangerke
add9010dbb CRUISE: Add a couple of checks to avoid the use of negative indices in arrays. Some minor rework in the data Loader 2014-06-07 16:05:08 +02:00
Strangerke
aedb109567 CRUISE: Some minor rework in script handler 2014-06-07 14:21:20 +02:00
Strangerke
6d6f789001 CRUISE: Add some comments, remove some optional brackets 2014-06-07 13:47:55 +02:00
Strangerke
52bcc9dd25 CRUISE: Fix a null pointer dereference 2014-06-07 12:13:30 +02:00
Strangerke
3c1c080c3a CRUISE: Fix some more CppCheck warnings 2014-06-06 23:18:47 +02:00
Strangerke
8cb50b52e0 CRUISE: Reduce the scope of some more variables 2014-06-06 22:49:21 +02:00
Strangerke
23abf274a7 CRUISE: Fix CppCheck warnings in gfxModule 2014-06-06 22:45:14 +02:00
Strangerke
ec0d6b916d CRUISE: Reduce the scope of several variables in processActorWalk() 2014-06-06 22:41:44 +02:00
Strangerke
b830b8498f CRUISE: Disable a bit more efficiently some code in Op_Random() and Op_PlayFx() 2014-06-06 22:40:29 +02:00
Strangerke
09e3ddf5b9 CRUISE: Reduce the scope of variables in fillpoly() 2014-06-06 07:24:45 +02:00
Strangerke
ec17a7ece6 CRUISE: disable more efficiently some code 2014-06-06 07:19:56 +02:00
Strangerke
2eaa78b54b CRUISE: Fix a couple of CppCheck warnings in Volume 2014-06-06 07:12:54 +02:00
Strangerke
d76c375c3f CRUISE: Remove useless code in addAnimation() 2014-06-05 08:06:32 +02:00
Strangerke
ef902a3fa2 CRUISE: Remove logically dead code in Sound 2014-06-05 08:02:43 +02:00
Strangerke
aaf9c35da2 CRUISE: More rework and renaming on the decompiler 2014-06-01 21:59:11 +02:00
Strangerke
0b4beb59b6 CRUISE: Start renaming opcodes in the Decompiler, some rework 2014-06-01 11:50:49 +02:00
Strangerke
6b8348a6bd CRUISE: Fix a CppCheck error in decompiler 2014-06-01 11:50:47 +02:00
Strangerke
094b9d18bb CRUISE: Fix a bug in the decompiler 2014-06-01 11:50:45 +02:00
Strangerke
7f19bbb21d CRUISE: Reduce the scope of a variable, remove a useless increment 2014-06-01 11:50:44 +02:00
Strangerke
a6ead6bba8 CRUISE: Comment out some useless code 2014-06-01 11:50:42 +02:00
Strangerke
c15f211486 CRUISE: Reduce the scope of some variables in actor and cruise_main 2014-06-01 11:50:40 +02:00
Strangerke
1dbcd74988 CRUISE: Reduce the scope of variables used in the for loops 2014-06-01 01:21:32 +02:00
Strangerke
13cc433fb6 CRUISE: error out in some cases where divide by zero is expected 2014-06-01 00:18:08 +02:00