488 Commits

Author SHA1 Message Date
Max Horn
b27a871f87 turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
svn-id: r11045
2003-11-02 02:18:16 +00:00
Max Horn
4c2387639d cleanup
svn-id: r11042
2003-11-01 23:41:35 +00:00
Max Horn
186125ffb6 fix potential crash
svn-id: r11037
2003-11-01 22:11:33 +00:00
Max Horn
adbaab7ef9 added doxygen comment
svn-id: r11036
2003-11-01 21:23:48 +00:00
Gregory Montoir
3e267ba5f9 make doxygen happy
svn-id: r11030
2003-11-01 20:44:53 +00:00
Max Horn
a4d2a47820 factor out common debugger code
svn-id: r10984
2003-10-26 21:30:52 +00:00
Torbjörn Andersson
27b22efe17 Fixed typo and added FIXME comment for the DotMatrix scaler.
svn-id: r10956
2003-10-24 17:14:56 +00:00
Max Horn
f5a7c67191 added russian as a language (part of patch #823031, adapted to recent code changes)
svn-id: r10878
2003-10-17 18:52:15 +00:00
Max Horn
ad2db08940 renamed some Timer methods
svn-id: r10868
2003-10-17 16:39:32 +00:00
Max Horn
96a8d0ec1c proper fix for COMI timer issue: don't let a Timer remove itself
svn-id: r10867
2003-10-17 16:30:24 +00:00
Max Horn
a70460833e moved platform/language constants to common/util.*
svn-id: r10862
2003-10-17 15:35:46 +00:00
Max Horn
37085bfe88 fix (workaround) for bug #825331
svn-id: r10853
2003-10-17 11:17:49 +00:00
Max Horn
7f5c5f0f8b COMI crashes because for some reasons we get a 0 timer interval. not sure how that is possible, but adding some asserts for now
svn-id: r10852
2003-10-17 11:11:01 +00:00
Max Horn
3e68577bae added push_back method with List arg (append one list to another one efficiently)
svn-id: r10850
2003-10-17 10:23:52 +00:00
Jonathan Gray
db716d5fb1 add method to set the xor byte in the file class. Needed as the combined mac data files are only xor'd in the resource files, not the parts of the combined file
svn-id: r10825
2003-10-16 10:23:01 +00:00
Max Horn
a8e1340c45 improved timer resolution -> this helps iMuse *a lot* on my system when there is load
svn-id: r10804
2003-10-14 20:52:27 +00:00
Jamieson Christian
2968be7670 Turn off another annoying MSVC warning
svn-id: r10803
2003-10-14 20:06:22 +00:00
Max Horn
0aa58f53c8 init RNG for everybody using time()
svn-id: r10796
2003-10-14 10:24:27 +00:00
Nicolas Bacca
b085e51dc5 EVC : compile different
svn-id: r10744
2003-10-12 13:27:42 +00:00
Max Horn
5301edc383 some cleanup
svn-id: r10720
2003-10-10 13:55:08 +00:00
Max Horn
2dddd0e29a modified version of patch #821018; fix for bug #821083
svn-id: r10716
2003-10-10 11:13:25 +00:00
Max Horn
21480a2289 fix ConfMan.set when dom is empty; added some asserts (paranoia)
svn-id: r10698
2003-10-09 11:42:59 +00:00
Max Horn
d177364715 new config manager. not everything is completed, and some things will still be changed, but it seems to work well enough to put it into CVS
svn-id: r10687
2003-10-08 21:59:23 +00:00
Max Horn
9e5c5e292a humpf
svn-id: r10685
2003-10-08 21:09:21 +00:00
Max Horn
cf3ac50e3c add String::lastChar() method
svn-id: r10684
2003-10-08 21:01:50 +00:00
Max Horn
b41c052ab5 renamed createNode() to findOrCreateNode(); added addKey() method; reimplemented merge()
svn-id: r10683
2003-10-08 18:05:20 +00:00
Max Horn
e5c62af78e added String::emptyString constant
svn-id: r10649
2003-10-06 23:19:01 +00:00
Max Horn
bfde7528ba no need for an explicit error here; rather, the linker will catch any invalid uses if we don't give a body
svn-id: r10610
2003-10-05 14:15:31 +00:00
Max Horn
a0fb1850de cleaned up iterator code in Map
svn-id: r10608
2003-10-05 14:02:37 +00:00
Max Horn
6e73fffcfa added iterators to List template
svn-id: r10607
2003-10-05 14:02:28 +00:00
Max Horn
48e94ef721 added doxygen comment & TODOs
svn-id: r10604
2003-10-05 13:10:53 +00:00
Max Horn
d4734bd4f2 use namespace Common a bit more; don't zero the RNG in scumm (else the seed gets reset); remove obsolete 256 color blending code
svn-id: r10592
2003-10-04 11:50:21 +00:00
Paweł Kołodziejski
f0fae232b9 fixed compilation under msvc7
svn-id: r10562
2003-10-03 07:45:41 +00:00
Max Horn
a02c13a52e fix scaler compilation for MSVC6. However, the produced code stll seems to be incorrect... Jamieson, maybe the MSVC6_COMPAT should be re-added then after all?
svn-id: r10552
2003-10-02 23:29:58 +00:00
Max Horn
bb5351f0a8 according to tsuteiuQ, this helps MSVC6 (seems it can cope with the enums but not with static consts)
svn-id: r10551
2003-10-02 23:09:54 +00:00
Max Horn
0e645f88ae renamed namespace ScummVM to Common
svn-id: r10544
2003-10-02 17:43:02 +00:00
Max Horn
2d216530e6 fix a warning wjp gets with gcc 3.2.3
svn-id: r10541
2003-10-02 17:07:50 +00:00
Jamieson Christian
8fbcb4ac15 Added MSVC6_COMPAT in order to be able to disable
new additions/optimizations that use constructs with
which MSVC6 is incompatible, such as the revamped
template-based super/hq/tv scalers.

svn-id: r10540
2003-10-02 15:00:36 +00:00
Max Horn
80eb1f8cb9 sync with hq2x (in particular, use my Altivec code here, too
svn-id: r10529
2003-10-01 20:59:05 +00:00
Max Horn
57eb9654b7 make MSVC7 happy
svn-id: r10524
2003-10-01 17:06:36 +00:00
Max Horn
628f65b639 move INTERPOLATE / Q_INTERPOLATE to intern.h; remove some jumps (pipelin trashers I call 'em :-) from diffYUV
svn-id: r10523
2003-10-01 16:47:49 +00:00
Max Horn
b6f85de558 instead of using a stack array, use regular variables (marked with the register keyword to hint the optimizer) for the color data. At least over here this helps the optimizer *A LOT* - instead of keeping w[] on the stack, on the PowerPC all values stay in registers, for a nice speed boost. Shouldn't hurt x86 either
svn-id: r10522
2003-10-01 16:39:31 +00:00
Max Horn
2aeb5c2414 added some AltiVec code. Still under development, and notice that this is my first time writing AltiVec code, so I am sure it could be done better :-). I am working on the interpolation function now.
svn-id: r10508
2003-09-30 16:59:01 +00:00
Max Horn
7ccafa467c synced hq2x with upstream changes; some performance tweaks to hq2x/hq3x (I think for bigger speed improvement we'd have to use ASM (with C++ fallback of course)...
svn-id: r10494
2003-09-29 23:34:43 +00:00
Max Horn
e342878f84 forgot to add common/scaler to MODULE_DIRS
svn-id: r10490
2003-09-29 21:58:40 +00:00
Max Horn
c40e7d68a5 templatized more of the scalers; also introduced template struct ColorMasks (shortens/simplifies other code a bit)
svn-id: r10489
2003-09-29 18:38:51 +00:00
Max Horn
4a7385b4e7 split out scalers into separate source files in common/scaler; some optimizations (in particular, the hq2x/hq3x scalers now are compiled into two versions, one for 555 and one for 565 mode)
svn-id: r10488
2003-09-29 16:02:47 +00:00
Max Horn
17bf7b95aa removed duplicate g_timer object (one was global, one was static to timer.cpp); set g_system earlier (might prevent a few race conditions)
svn-id: r10471
2003-09-28 21:08:48 +00:00
Torbjörn Andersson
2d3e970496 Slightly more sensible hotkeys for the scalers. Hq2x is now number 8, right
after AdvMame2x, and 9 and 0 are AdvMame3x and Hq3x respectively.

I agree with Fingolfin that we'll need a better way of handling this in the
future, though.

svn-id: r10461
2003-09-28 14:27:08 +00:00
Jonathan Gray
0b923944d2 don't try to pass NULL when there is an int argument
svn-id: r10454
2003-09-28 00:59:01 +00:00