31 Commits

Author SHA1 Message Date
D G Turner
7e31014e98 BBVS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-16 19:12:57 +01:00
Colin Snover
972c453986 BBVS: Remove all bit shifts of potentially negative integers
Previous patches that removed shifts of constant negative values
to eliminate UB were valid, but did not correct all places where
this engine was potentially bit shifting negative values. There is
no reason to not just use multiplication and division and let the
compiler make the right choice for optimisation for an
architecture, so that is what this patch does.
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
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Torbjörn Andersson
ebad422f2f BBVS: Move much of engine initialization to newGame()
This should fix bug #7057 ("BBVS: No clean-up when restarting").
2016-03-14 06:49:26 +01:00
Matthew Hoops
bb12f77cbf BBVS: Fix compilation without translation enabled
A regression from 2a6cbd0
2015-12-21 17:58:09 -05:00
Torbjörn Andersson
1c841094fa BBVS: Use memmove(), not memcpy(), for overlapping memory areas
CID 1230310. This fixes the credits easter eggs for me.
2015-11-30 22:39:54 +01:00
Eugene Sandulenko
2a6cbd05f8 BBVS: Since we're using GUI for menus, switch iGUI to the relevant language 2015-11-18 01:11:05 +01:00
Filippos Karapetis
88e5998ee5 BBVS: Remove trailing whitespace 2014-10-28 16:24:45 +02:00
Strangerke
8481ff0e61 BVBS: Use a constant instead of a variable for the snapshot size 2014-03-20 19:31:40 +01:00
Strangerke
e324f3e6be BVBS: Fix some uninitialized variables 2014-03-20 19:28:05 +01:00
Strangerke
cf3bf73cde BBVS: Use a boolean for _gameResult. Adapt function declarations accordingly 2014-02-28 07:45:16 +01:00
Filippos Karapetis
b56f8f2212 BBVS: Move some code out of bbvs.cpp 2014-02-22 20:34:52 +02:00
Strangerke
0958ac9b7f BBVS: Silent some CppCheck warnings 2014-02-22 18:26:35 +01:00
johndoe123
882cf2f5ba BBVS: Fix const char string arrays 2014-02-16 00:27:00 +01:00
johndoe123
2f22673945 BBVS: Remove unneccessary makeLoopingAudioStream in playSpeech and use the audiostream directly 2014-02-16 00:19:11 +01:00
johndoe123
6078bf7eba BBVS: Remove rectIntersection and use Rect::findIntersectingRect instead 2014-02-16 00:12:26 +01:00
johndoe123
82bb55aa89 BBVS: Remove obsolete debug comments 2014-02-15 23:53:09 +01:00
johndoe123
86b5192d1b BBVS: Use spaces instead of tabs for formatting 2014-02-15 23:39:05 +01:00
johndoe123
62e7b4bbba BBVS: Fix GCC warning (signed/unsigned comparison) 2014-02-07 17:11:42 +01:00
johndoe123
3471c0c24d BBVS: Fix compilation in MSVC10 as suggested by dreammaster 2014-02-07 09:37:14 +01:00
johndoe123
542197a891 BBVS: Very small cleanup 2014-01-30 20:16:40 +01:00
johndoe123
ea519818e2 BBVS: Wrap some long lines 2014-01-30 20:16:40 +01:00
johndoe123
7c8b7467c2 BBVS: Fix mainmenu after intro videos 2014-01-30 20:16:39 +01:00
johndoe123
c31762d0c4 BBVS: Add easter egg videos handling 2014-01-30 20:16:38 +01:00
johndoe123
8fcfe61003 BBVS: Add delayMillis to update loops to save some cpu time 2014-01-30 20:16:33 +01:00
johndoe123
bb1dc9136b BBVS: Remove some debug output 2014-01-29 13:27:50 +01:00
johndoe123
24fd658795 BBVS: Add loading/saving of minigame hiscores 2014-01-29 13:27:49 +01:00
johndoe123
ef55f5b774 BBVS: Replace minigame flags parameter 2014-01-29 13:27:48 +01:00
johndoe123
5f4fc9a1dd BBVS: Initial commit 2014-01-29 13:27:47 +01:00