Joost Peters
934611c348
applied eriktorbjorn's floppy-intro-with-cd-version patch ( #765885 )
...
svn-id: r8753
2003-07-05 00:57:03 +00:00
Max Horn
0ed8e1ef36
prevent (or rather: make much less likely) some sound output related race conditions
...
svn-id: r8740
2003-07-04 13:17:56 +00:00
Torbjörn Andersson
f5f9061d86
Allow "no-" prefix to long command-line options, e.g. --no-aspect-ratio,
...
to invert their meanings. This is useful for overriding settings in the
config file.
svn-id: r8733
2003-07-04 06:54:47 +00:00
Max Horn
3ed9aae095
const correctness
...
svn-id: r8727
2003-07-03 22:06:13 +00:00
Max Horn
8f0c739f87
Timer now uses a mutex, which should make it thread safe (it wasn't before, particuarly bad if timers are implemented via threads), plus this should help in fixing race conditions in classes using class Timer
...
svn-id: r8722
2003-07-03 11:18:07 +00:00
Torbjörn Andersson
7404d5662d
Made read() return the number of bytes that were actually read, rather than
...
the number that was requested. A lot of our code obviously assumes this
behaviour, and the MP3 file player depends on it because otherwise, when
reaching the end of the file, it will think it read a full buffer, when in
fact it only got part of it and the rest is the remains from the previous
read.
This would cause a brief note from earlier in the track at the end of the
MI1 chapter one screen. Probably other cases as well.
Of course, this may cause regressions but only - I think - if the code was
buggy to begin with.
svn-id: r8721
2003-07-03 07:03:18 +00:00
Max Horn
621e356b42
don't default to the slowest aspect ratio correcter; rather use the medium one (good quality with acceptable speed)
...
svn-id: r8715
2003-07-02 14:47:06 +00:00
Paweł Kołodziejski
91cf11e99c
ops
...
svn-id: r8667
2003-06-27 05:11:16 +00:00
Paweł Kołodziejski
0ccd872187
chenged ifdef to handle all win32 ports
...
svn-id: r8666
2003-06-27 05:10:11 +00:00
Max Horn
71ea8f7228
fix the inaccurate version of interpolate5Line to work correctly for odd widths
...
svn-id: r8628
2003-06-22 17:32:50 +00:00
Max Horn
31bdf9f450
undoing this optimization: despite my initial sureness about this being correct - I was wrong :-) just plug in 0xFFFFFFFF to see it (roughly spoken, we can loose the uppermost bits if we shift after the addition instead of before it)
...
svn-id: r8627
2003-06-22 17:29:55 +00:00
Paweł Kołodziejski
288f101bc9
fixed warning
...
svn-id: r8623
2003-06-22 15:06:48 +00:00
Torbjörn Andersson
160c4f9104
Fixed the last (?) glitches around the mouse cursor [*] in aspect-ratio
...
correction mode by making sure that dirty rects always start on a line
that won't have its colours changed by the stretching function. This was
probably only noticeable when using the 1x scaler.
[*] Actually, the glitches weren't specific to the mouse cursor, but it was
useful for triggering them.
svn-id: r8621
2003-06-22 14:59:21 +00:00
Bertrand Augereau
7e86b215bb
Rearranged logic in SuperEagle
...
svn-id: r8620
2003-06-22 14:52:34 +00:00
Torbjörn Andersson
53d679bfb7
Fix some graphics glitches that would sometimes be visible around the mouse
...
cursor in aspect-ratio correction mode.
svn-id: r8618
2003-06-22 14:41:09 +00:00
Max Horn
2aa0a86038
cleanup
...
svn-id: r8616
2003-06-22 14:36:12 +00:00
Paweł Kołodziejski
9d09b77f21
fixed warnings
...
svn-id: r8613
2003-06-22 14:30:32 +00:00
Travis Howell
5132ca1b2f
Add opengl filter option
...
for opengl backend
Enable poll_event in opengl backend
svn-id: r8612
2003-06-22 14:18:33 +00:00
Max Horn
e7c3fae1e8
no need to keep these regression tests: the changes are mathematically and operationally (read: taking into account side effects and special cases in computer arithmetics) equivalent to the old code
...
svn-id: r8606
2003-06-22 12:03:24 +00:00
Max Horn
11ff7fe9a3
Patch #757827 : Aspect-ratio correction
...
svn-id: r8605
2003-06-22 11:55:40 +00:00
Bertrand Augereau
fa184730af
Reduced the number of shifts in highly used functions in Super2xSaI and SuperEagle
...
svn-id: r8604
2003-06-22 11:52:40 +00:00
Max Horn
2db275b109
make File constructor virtual to allow subclassing; made seek default to SEEK_SET mode for conveniance
...
svn-id: r8587
2003-06-21 20:21:40 +00:00
Max Horn
8b567ddaf8
cleanup
...
svn-id: r8557
2003-06-19 15:14:17 +00:00
Jamieson Christian
3567c13361
Fix for bug [756559] ALL: 'multi_midi=true' in scummvm.ini does not work.
...
Fix properly propogates previously encountered value of multi_midi
and native_mt32 so follow-on config domains that don't include
multi_midi or native_mt32 won't reset the settings.
svn-id: r8545
2003-06-18 22:39:17 +00:00
Chris Apers
d120ea093f
I will add a wrapper for that (currently NULL driver)
...
svn-id: r8526
2003-06-17 08:50:15 +00:00
Travis Howell
94e88917da
Make OpenGL specific scaler use other keys so all normal scaler canbe made available.
...
svn-id: r8521
2003-06-17 06:13:57 +00:00
Bertrand Augereau
dd5bd03dc9
Parentheses didn't compile on WIN32
...
svn-id: r8512
2003-06-15 18:56:41 +00:00
Max Horn
101df28e0b
moved GameId declaration to common/engine.h (more logical); moved scumm specific stuff from gameDetector.h to scumm.h; cleaned up some #includes (ideally, never #include something in a header file if you can avoid it - this cuts down interdepencies)
...
svn-id: r8496
2003-06-15 01:42:19 +00:00
Max Horn
f51caefbe0
some more cleanup
...
svn-id: r8488
2003-06-14 23:05:40 +00:00
Max Horn
5c56edc26f
fix for LE systems
...
svn-id: r8487
2003-06-14 22:42:14 +00:00
Max Horn
f7a8cbf7c7
Patch #754151 : Removed READ_*_UNALIGNED and always read stuff bytewise; augmented by some more changes of mine
...
svn-id: r8482
2003-06-14 18:52:30 +00:00
Max Horn
9658dd6ea3
fixed aquadran's Windows fix (a pointer is const for good reasons; simply casting it to something non-const is bad, and undermines the compilers aliasing detection
...
svn-id: r8481
2003-06-14 18:20:56 +00:00
Max Horn
a4edad02b6
cleanup
...
svn-id: r8480
2003-06-14 18:15:14 +00:00
Paweł Kołodziejski
a42fa9e25c
fix for bug #749249 , related with path of game data placed on root drive under win98
...
svn-id: r8478
2003-06-14 16:45:38 +00:00
Jonathan Gray
6bce6b4069
make -z output align nicely
...
svn-id: r8459
2003-06-13 10:13:41 +00:00
Jamieson Christian
fd931291d1
Fixed problem with variant game IDs (e.g. 'tentaclea')
...
svn-id: r8454
2003-06-12 19:22:40 +00:00
Jamieson Christian
baaf6502ec
Made notation of transient config domains consistent.
...
Now all transient config domains use a name
in the form _TRANSIENT_DOMAIN
svn-id: r8452
2003-06-12 18:46:37 +00:00
Max Horn
01cb6e2ab9
indention
...
svn-id: r8447
2003-06-12 15:20:58 +00:00
Jamieson Christian
fdf69876ae
Fixed command line options being ignored when the launcher is used.
...
Again, I hope I'm manipulating the domain-based config architecture
correctly. I've created yet another transient domain called
"_COMMAND_LINE", so that after game-specific options are loaded,
the command line options can be loaded and override the config
file. GUI options are then loaded so as to override command line
options.
svn-id: r8437
2003-06-11 18:34:37 +00:00
Jamieson Christian
c117ef1e50
Fix for bug [741592] GUI: Switching music driver mixes up music
...
Implement true music driver selection from the GUI options dialog.
This implementation depends on a new, transient config domain called
"user-overrides". Probably any other config changes made from the
options dialog will need to go into this domain, which is now
loaded after the game settings are loaded.
I hope this is the right way to do it. I'm still a little fuzzy
about our game settings architecture. If anybody suddenly gets
a "[user-overrides]" section showing up in their scummvm.ini or
scummvm.rc files, you'll know why.
svn-id: r8434
2003-06-11 06:49:47 +00:00
Jamieson Christian
167ad2575a
Fixed MSVC warning
...
svn-id: r8431
2003-06-11 05:08:41 +00:00
Max Horn
f36459f8ba
cleanup
...
svn-id: r8429
2003-06-10 16:25:49 +00:00
Max Horn
82af035f91
added clear_sound_proc method to backend API (this requires all backends to be modified, but can't help it)
...
svn-id: r8409
2003-06-09 01:19:25 +00:00
Max Horn
be9e6e85db
added quit event
...
svn-id: r8398
2003-06-08 12:11:14 +00:00
Max Horn
6f0943e9c8
removed GF_AFTER flags (except GF_AFTER_HEV7)
...
svn-id: r8374
2003-06-07 00:16:54 +00:00
Max Horn
badfdeedd3
added to new feature flags
...
svn-id: r8369
2003-06-06 23:58:39 +00:00
Max Horn
9f4d675eba
remove version column
...
svn-id: r8368
2003-06-06 23:57:59 +00:00
Max Horn
4b227da824
Preparations for removing GF_AFTER_V? flags
...
svn-id: r8364
2003-06-06 22:51:33 +00:00
Bertrand Augereau
91a3d553e4
unmacro-ed and templated ABS, MIN & MAX
...
svn-id: r8311
2003-06-05 03:28:35 +00:00
Max Horn
c1dcc1a1ec
Korean is kr, not ko
...
svn-id: r8279
2003-06-02 22:07:41 +00:00
Max Horn
d4982a0b1d
fixed compilation
...
svn-id: r8276
2003-06-02 21:29:54 +00:00
Max Horn
f91de2ae1e
renamed&fixed contains(Rect) -> intersects(Rect); added extend() method
...
svn-id: r8246
2003-06-01 17:06:07 +00:00
Travis Howell
771dcfaad7
Rename SimonState to SimonEngine
...
svn-id: r8228
2003-06-01 09:41:56 +00:00
Max Horn
06ab068a41
added some front matter text for doxygen
...
svn-id: r8119
2003-05-29 23:13:15 +00:00
Max Horn
e08d4f072e
more OSystem docs & cleanup
...
svn-id: r8118
2003-05-29 22:34:35 +00:00
Max Horn
f0a9f4fb2c
added some doxygen comments to common/system.h; cleaned up the OSystem interface a bit
...
svn-id: r8116
2003-05-29 21:45:26 +00:00
Max Horn
c991d40c58
fixed doc comment
...
svn-id: r8107
2003-05-29 16:37:49 +00:00
Max Horn
b07927da3d
added some doxygen (javadoc style) comments. yes I sure these function probably needed documentation the least, but I just wanted something simple to test this on :-)
...
svn-id: r8094
2003-05-29 11:40:48 +00:00
Max Horn
db43466ea2
removed cruft
...
svn-id: r8093
2003-05-29 11:15:32 +00:00
Max Horn
2dd2e99cab
the _encbyte code was evil, because it modified the memory passed to write(); worse, though, it incremented ptr2, which then was later passed to fwrite - hence if used to write something while _encbyte != 0, write() resulted in wrong data being written
...
svn-id: r8055
2003-05-28 19:03:12 +00:00
Max Horn
3fae6fbf46
added some missing checks for file being open before reading/writing
...
svn-id: r8043
2003-05-28 02:06:53 +00:00
Chris Apers
bf565613b2
Prepare support for wide display on HiRes+ device
...
svn-id: r8001
2003-05-26 12:59:16 +00:00
Jonathan Gray
ad874a4fd5
make lethalwp happy
...
svn-id: r7997
2003-05-26 12:26:15 +00:00
Travis Howell
055d49f77f
Japanese option is jp and not ja
...
svn-id: r7993
2003-05-26 07:37:29 +00:00
Max Horn
c5ea0839ef
as Bertrand points out, using && introduces unnecessary branching, so & is better
...
svn-id: r7979
2003-05-25 23:33:24 +00:00
Max Horn
35f8c2202f
cleanup / added some more const qualifiers
...
svn-id: r7975
2003-05-25 22:01:19 +00:00
Max Horn
867e42c6fa
optimized GetResult, based on code by Bertrand Augereau
...
svn-id: r7974
2003-05-25 21:54:01 +00:00
Max Horn
deb5e04a87
removed obsolete code
...
svn-id: r7973
2003-05-25 21:43:16 +00:00
Max Horn
835b4e9476
cvs going to 0.4.2cvs
...
svn-id: r7946
2003-05-25 12:28:38 +00:00
Max Horn
9b70fee5f3
changed scaler proc signature so that srcPtr is const (this can help optimizer by simplifying aliasing detection; thanks to Bertrand Augereau for pointing this out)
...
svn-id: r7939
2003-05-25 12:08:01 +00:00
Max Horn
ad4eb36093
oops, fixed ScummVM::Rect constructor (this fixes various string redraw bugs)
...
svn-id: r7868
2003-05-23 17:01:35 +00:00
Oliver Kiehl
d61ee38b23
fix #define
...
svn-id: r7806
2003-05-21 20:45:59 +00:00
Max Horn
3736794737
don't inline free_check to make debugging easier
...
svn-id: r7805
2003-05-21 20:35:48 +00:00
Oliver Kiehl
c78230bf47
pedantic fixes (little endian version)
...
svn-id: r7798
2003-05-21 18:45:58 +00:00
Max Horn
ffac2da5aa
added fixme comment
...
svn-id: r7791
2003-05-21 17:29:51 +00:00
Max Horn
1a6d646754
more pedantic changes
...
svn-id: r7790
2003-05-21 17:00:00 +00:00
Max Horn
24005adfd0
pedantic fixes
...
svn-id: r7789
2003-05-21 16:59:51 +00:00
Max Horn
72d6179c47
fixed ltrim/rtrim
...
svn-id: r7788
2003-05-21 16:48:25 +00:00
Max Horn
0f64347b35
replace our 'nice' new which sets memory to 0 with a nasty one which sets it to 0xE7. This should help finding any remaining places where we don't init member variables as we should.
...
svn-id: r7719
2003-05-20 12:25:11 +00:00
Max Horn
881e127298
new date (post-0.4.0)
...
svn-id: r7702
2003-05-19 20:40:54 +00:00
Jamieson Christian
3703ed51dc
Oops....
...
svn-id: r7700
2003-05-19 20:34:41 +00:00
Jamieson Christian
7bf95c0cf0
Fixed silence in older games under native MIDI drivers
...
svn-id: r7697
2003-05-19 19:50:28 +00:00
Max Horn
d6cf47dfaa
Patch #739911 : Fix for undefined behaviour in fopenNoCase()
...
svn-id: r7695
2003-05-19 19:19:32 +00:00
Jonathan Gray
cf54a63639
HAVE_CONFIG_H
...
svn-id: r7632
2003-05-18 13:39:02 +00:00
Oliver Kiehl
a95e860c10
_gameId is of type char so it does not make sense to have 299 GIDs. reduce to 199
...
svn-id: r7620
2003-05-17 23:47:50 +00:00
Max Horn
a5607d3fa2
make ARRAYSIZE 'return' an int
...
svn-id: r7618
2003-05-17 23:36:47 +00:00
Jamieson Christian
5a1e994d02
Added command line options for
...
native MT-32 support and
combination Adilb/native MIDI drivers.
svn-id: r7594
2003-05-17 03:06:16 +00:00
Jamieson Christian
5a15ce808a
Feature [557411] Adlib sound effects with GM drivers.
...
Support for simultaneous drivers is based on a
#define in imuse.cpp, and is disabled by default.
svn-id: r7582
2003-05-16 22:00:33 +00:00
Jonathan Gray
0d7184aa00
GF_AFTER_HEV7
...
svn-id: r7571
2003-05-16 11:29:16 +00:00
Jonathan Gray
7c1ca29ece
add config option basename to override base file name for games of the form foo.xxx to basename.xxx, useful when used together with gameid to test games not yet added to version list
...
svn-id: r7566
2003-05-16 08:05:06 +00:00
Max Horn
d7ef626b42
fix advmame scaler ('flickering', observable in e.g. Sam&Max, and the left-screen-border-black bug). Note: this change might look fishy to you but is perfectly legal because our frame buffers put a border around the screen data to accomodate for this
...
svn-id: r7556
2003-05-16 00:11:35 +00:00
Max Horn
050358bc7f
oops
...
svn-id: r7545
2003-05-15 22:27:09 +00:00
Max Horn
b34318ca55
add method to grow a rect
...
svn-id: r7544
2003-05-15 22:15:24 +00:00
Max Horn
f695aa3885
renamed isInside() to contains() (this is more intuitive, because r.isInside(p) actually meant 'p is inside r', which was confusing; now it's r.contains(p) which means 'r contains p')
...
svn-id: r7541
2003-05-15 21:52:10 +00:00
Max Horn
128f793be0
make SWAP a template function, so that it works for swapping non-int stuff, too; 'int16' should be sufficient for points/rects
...
svn-id: r7540
2003-05-15 21:40:36 +00:00
Max Horn
c0e8eb0cb7
let it compile
...
svn-id: r7539
2003-05-15 21:33:39 +00:00
Max Horn
6cbfc1e342
cleanup (rect.h is not used anywhere but I plan to change that...)
...
svn-id: r7537
2003-05-15 21:25:35 +00:00
Robert Göffringmann
299a1a451f
added method to detect which midi driver will be created
...
svn-id: r7482
2003-05-12 23:21:35 +00:00
Max Horn
37724d9297
Patch #735294 : AdvMame3x scaler
...
svn-id: r7409
2003-05-09 22:44:16 +00:00
Max Horn
d3e5e47984
-> version 0.4.1cvs
...
svn-id: r7352
2003-05-05 15:18:43 +00:00