rubidium
bc5241600a
(svn r17428) -Codechange: add a function to get the name of a driver
2009-09-05 21:26:51 +00:00
rubidium
bc8e66c202
(svn r17336) -Codechange: move some os specific files into src/os/
2009-08-31 22:38:37 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
smatz
c5533ae470
(svn r17168) -Codechange: apply coding style to if and while statements
2009-08-14 17:11:59 +00:00
smatz
e707c82412
(svn r17131) -Codechange: apply coding style to some switch statements
2009-08-09 14:40:34 +00:00
rubidium
e3c7a77b40
(svn r16827) -Codechange: make OSX specific files include stdafx.h always as the first file. Also unify OSX specific stuff into osx_stdafx.h and remove unused includes.
2009-07-14 16:43:45 +00:00
rubidium
65191b077d
(svn r16702) -Change: don't implicitly fall back to the null/dedicated (video) drivers, but show an error message that no driver could be found. You can still explicitly start the null drivers thought.
2009-06-30 16:20:16 +00:00
rubidium
c29afac0a7
(svn r16700) -Fix: if allegro fails to start or fails open a window or sound card fall back to another driver
2009-06-30 12:38:18 +00:00
rubidium
791187cd12
(svn r16699) -Fix [FS#3001]: if SDL fails to allocate a surface due to it being too large (and SDL doesn't crash!) fall back to another video driver.
2009-06-30 12:36:24 +00:00
alberth
9b070b5405
(svn r16677) -Codechange: Dimension width and height are unsigned.
2009-06-27 20:53:45 +00:00
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
rubidium
9f4d64bda0
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
2009-05-19 21:20:14 +00:00
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +00:00
rubidium
5f4eeee5f0
(svn r16221) -Change: support building 64 bits OSX binaries and add optional support for 64 bits binaries in OSX universal binaries. However, do not default to adding 64 bits binaries because benchmarking has shown that they are slower than the 32 bits binaries.
2009-05-03 15:46:36 +00:00
rubidium
bee930f9b3
(svn r16024) -Codechange: harden string copying on places where it's possible
2009-04-10 20:37:05 +00:00
rubidium
8293be426c
(svn r15892) -Codechange: [OSX] some type fixes so OpenTTD likes more of the 3.1.x Xcodes.
2009-03-29 19:55:08 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
glx
1692ce8312
(svn r15710) -Fix (r15706): for non MSVC io.h needs to be included before defining unlink. Also remove redundant tchar.h includes as it is already in stdafx.h.
2009-03-14 15:42:53 +00:00
rubidium
86ca408d46
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
2009-03-06 01:23:25 +00:00
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
2009-02-25 00:45:52 +00:00
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
2009-02-25 00:14:46 +00:00
rubidium
a4567f243d
(svn r15543) -Change: allow the default debug level of 6 for a dedicated server to be overriden by -d (if used after -D).
2009-02-21 13:27:09 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
glx
a3dc092ebc
(svn r15233) -Fix (r15231): compilation with SDL broken on win32
2009-01-23 17:32:01 +00:00
rubidium
48125a6d5f
(svn r15232) -Codechange: sprinklin' of coding style
2009-01-23 16:05:58 +00:00
rubidium
4ba90f6887
(svn r15231) -Change: (sdl) check the full screen resolutions to determine what 'valid' resolutions we've got
2009-01-23 15:58:34 +00:00
rubidium
eeb38a8e3a
(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.
2009-01-20 16:51:55 +00:00
rubidium
6e1af6a051
(svn r15156) -Fix: add scrollwheel support to allegro
2009-01-19 22:27:43 +00:00
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
rubidium
cda853872a
(svn r14944) -Cleanup: add spaces around some operators
2009-01-09 22:56:28 +00:00
peter1138
6b6fd36050
(svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters.
2009-01-08 11:06:07 +00:00
rubidium
cdec8f6b27
(svn r14641) -Change [Allegro]: when making a debug build revert Allegro's hooks on SIGSEGV/SIGABRT so one can actually use gdb.
...
-Change: make it more clear that Allegro's failing to find a driver.
2008-11-29 01:28:13 +00:00
rubidium
a614dd7174
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
2008-11-26 13:12:45 +00:00
rubidium
34ddda1009
(svn r14632) -Add: support Allegro as midi backend.
2008-11-25 23:21:58 +00:00
rubidium
72124862f0
(svn r14631) -Add: support for Allegro as sound backend.
2008-11-25 21:09:00 +00:00
rubidium
3aacd0a3d5
(svn r14630) -Add: support Allegro as video backend.
2008-11-25 19:32:12 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
rubidium
e7829c1a57
(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
2008-09-29 16:27:02 +00:00
rubidium
86f1a98ac8
(svn r14397) -Fix: possible buffer overrun, wrong parameter type passed to printf and && where || is meant. Found by MSVC's code analysis (Darkvater)
2008-09-24 23:25:24 +00:00
glx
fe5cc9c839
(svn r14363) -Fix [FS#2206]: some keypress combinations could be handled twice
2008-09-20 16:07:56 +00:00
rubidium
3b7ffcf759
(svn r14260) -Fix [FS#2277]: merge keycode for "normal" 0-9 keys and keypad 0-9 keys so people don't get confused that the keypad doesn't work as expected.
2008-09-07 11:55:28 +00:00
rubidium
6b86de13d6
(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate wrong comments!
2008-08-31 11:51:09 +00:00
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-31 10:50:05 +00:00
glx
fbd2db34e6
(svn r14094) -Revert (r14071): caused more problems than it solved
2008-08-17 15:03:54 +00:00
rubidium
20ee6f1158
(svn r14071) -Fix [FS#2057]: the screen wouldn't be centered on Windows multimonitor systems if the first monitor is right of the second one.
2008-08-13 19:09:27 +00:00
rubidium
203b5eed27
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
2008-08-12 20:31:49 +00:00
rubidium
d0c1a989a4
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
2008-08-11 22:45:11 +00:00
bjarni
fbef6535a5
(svn r14032) -Fix (r13584): [OSX] changed the condition for selecting 8 or 32 bpp blitter by default
...
Now we will pick 32 bpp if no 8 bpp fullscreen resolutions are available on the main display (the one with the dock)
2008-08-09 17:56:31 +00:00
rubidium
6c5f703cf0
(svn r13992) -Fix [FS#2189]: the dedicated console removed any character that was not a printable ASCII character instead. Now it allows UTF8 formated strings too.
2008-08-04 15:07:17 +00:00
glx
4782df757c
(svn r13539) -Fix (r13537): signed/unsigned warnings
2008-06-16 20:16:43 +00:00
smatz
2299181c4b
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
2008-06-16 19:38:41 +00:00
glx
ee256e770a
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
2008-06-05 20:54:52 +00:00
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-29 15:13:28 +00:00
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
rubidium
6c20f77330
(svn r13228) -Codechange: split console.h.
2008-05-24 10:15:06 +00:00
bjarni
8fea5a62c9
(svn r12985) -Fix (r12977): [OSX] fixed missing includes in the cocoa files
2008-05-07 08:38:56 +00:00
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
smatz
297f99e100
(svn r12944) -Codechange: use rev.h instead of externs at many places
2008-05-04 21:53:36 +00:00
rubidium
c884d82e46
(svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did.
2008-04-19 21:51:05 +00:00
rubidium
15242b1784
(svn r12780) -Fix: the null blitter did segfault.
2008-04-18 23:32:10 +00:00
rubidium
dde68e922a
(svn r12779) -Codechange: remove a few constants from openttd.h.
2008-04-18 21:49:38 +00:00
egladil
8e49daf3e1
(svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion.
2008-04-18 21:21:25 +00:00
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
smatz
8b56e7544e
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
2008-02-17 17:00:43 +00:00
egladil
be6737a2db
(svn r12016) -Fix (r12003): os x compilation was broken again ;)
2008-01-29 19:23:31 +00:00
glx
fdd71514b2
(svn r12007) -Fix (r12003): win32 compilation was broken again ;)
2008-01-29 00:45:24 +00:00
rubidium
fde33b5547
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
2008-01-29 00:26:31 +00:00
glx
48861a9fae
(svn r11841) -Fix: win32 compilation
2008-01-13 22:07:33 +00:00
rubidium
392d59f6a9
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
2008-01-13 21:51:53 +00:00
rubidium
3ca95f2a85
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
bjarni
ef219245af
(svn r11836) -Fix [r11834]: [OSX] fixed compilation
2008-01-13 17:37:17 +00:00
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
rubidium
04f936c2c6
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
2008-01-11 00:30:32 +00:00
peter1138
77717563e1
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
2008-01-07 16:41:03 +00:00
belugas
3dd61f423a
(svn r11734) -Change: Allow ToggleFullScreen to return the result of the operation' attempt. Previously, only visual clues were available.
...
-Fix[FS#1519]: When you can not use this resolution at full screen, now you'll know that it failed.
As for the reason it did not work, each computer/OS has its reason.
2008-01-01 14:20:48 +00:00
egladil
6ae9302708
(svn r11718) -Fix [FS#1483]: Show the fullscreen modes available to the cocoa driver in windowed mode too.
2007-12-29 05:15:13 +00:00
belugas
5087a6cdd7
(svn r11713) -Codechange: Move some declarations and definitions in a more logical disposition
2007-12-28 03:14:55 +00:00
egladil
6e1cae5256
(svn r11708) -Fix [FS#1598]: Removed include of variables.h as it was no longer needed and caused compilation to fail.
2007-12-27 14:45:10 +00:00
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
bf98e25e43
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
egladil
22f79df328
(svn r11688) -Fix [FS#1581]: Compilation was broken on OS X again.
2007-12-23 18:08:39 +00:00
rubidium
a773d45885
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
8f0e68285b
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
glx
65754b8d12
(svn r11676) -Fix (r11674): some references to macros.h were left
2007-12-21 21:16:14 +00:00
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
2007-12-21 19:21:21 +00:00
rubidium
8896bea306
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
2007-12-19 19:44:29 +00:00
egladil
2885c66060
(svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time.
2007-12-17 07:47:21 +00:00
bjarni
2256d9d378
(svn r11599) -Change: [OSX] 10.4 will now use quickdraw for window mode instead of quartz
...
The reason is that quickdraw is way faster (try fast forward)
10.5 will still use quartz as it can't handle quickdraw.
2007-12-08 15:21:37 +00:00
rubidium
f1e4914b5f
(svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions.
2007-12-08 14:50:41 +00:00
bjarni
5fcbb8f59b
(svn r11540) -Fix: [OSX] Don't try to compile the quartz video driver on OSX 10.3. It will fail
2007-11-30 13:26:24 +00:00
egladil
1d5010edf9
(svn r11521) -Codechange: [OSX] Check what the running os version is in a cleaner way.
2007-11-25 14:43:16 +00:00
egladil
9aaa455e5d
(svn r11520) -Fix: [OSX] The cocoa video driver let the mouse cursor escape the window when using rmb scrolling. Thanks ln- for pointing this out and providing a fix.
2007-11-25 12:58:32 +00:00
skidd13
bf959f926f
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
2007-11-24 10:38:43 +00:00
egladil
fcbfba1e17
(svn r11508) -Cleanup: Removed unused headers from the cocoa video driver.
2007-11-24 09:55:17 +00:00
egladil
2e0dd78ccf
(svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492.
2007-11-23 13:45:59 +00:00
egladil
2ebf50e421
(svn r11498) -Add [FS#1411]: [OSX] Added support for using Quartz instead of Quickdraw in windowed mode on OS X 10.4 and higher. Based on a patch by blackis.
2007-11-23 02:44:05 +00:00
egladil
3ad488e98f
(svn r11492) -Codechange: [OSX] Split the cocoa video driver into several files. The reason for this is that the fullscreen and windowed mode api are separate from each other in OS X and thus the driver actual is two drivers in one. This split is to make the code more readable and to prepare for replacing the Quickdraw windowed mode code which uses apis deprecated as of OS X 10.5 (and maybe earlier).
2007-11-22 21:48:17 +00:00
skidd13
58bb5c7525
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
...
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
2007-11-19 18:38:10 +00:00
egladil
134227aa8c
(svn r11342) -Fix: [OSX] The cocoa driver incorrectly assumed that the blitter always was 8bpp. Now both 8bpp and 32bpp blitters can be used. The driver will check the blitter screen depth. In fullscreen it will select a proper video mode for this depth, and in windowed mode it will simply skip doing fake 8bpp.
2007-10-25 23:45:03 +00:00
glx
1713d89374
(svn r11061) -Fix [FS#1086]: [win32] some keys were handled twice
2007-09-08 14:59:58 +00:00
bjarni
e10361a0eb
(svn r10996) -Feature: [OSX] added more options for right click emulation (controlled from the interface tab in the patch window)
...
This only works with the cocoa drivers (you will use the cocoa drivers unless you manually switched to SDL and compiled yourself)
Note: if control-click is selected, then the ingame control-click (like presignals and such) will be command-click
Requested and tested by ln- (so he should be blamed if this goes wrong :P )
2007-08-29 08:20:04 +00:00
glx
a66008f04c
(svn r10946) -Fix (r10932): forgot one occurence
2007-08-19 17:55:24 +00:00
rubidium
0fed821efb
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
2007-08-19 09:38:30 +00:00
truelight
04824abac6
(svn r10839) -Fix [FS#873]: bring up the assert window for OSX even when there isn't a video-driver loaded (PinguTux)
2007-08-10 13:33:04 +00:00
glx
41e05382b8
(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
2007-08-09 20:59:36 +00:00
rubidium
5399a272e6
(svn r10834) -Revert (part of r10833): something too much was committed :(
2007-08-09 05:34:56 +00:00
rubidium
2bff32afb0
(svn r10833) -Fix [FS#1115]: assertion (different cost between test and execution) of overbuilding road tunnels with tram tracks (and vice versa) when the dragged area contains both ends of the tunnel.
2007-08-09 05:25:33 +00:00
truelight
ce9cba5edb
(svn r10782) -Fix: wrongly places #endif a long time ago broke WinCE compiling for sure
2007-08-04 13:51:41 +00:00
truelight
424757c078
(svn r10781) -Fix: ported more pieces to WinCE, so it compiles a bit more
...
-Fix: WinCE doesn't support console
-Fix: Set debug lvl4 when running a debug WinCE build (as you can't give parameters any easy way)
2007-08-04 12:53:41 +00:00
glx
d6c915e6a6
(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
2007-08-03 02:21:10 +00:00
truelight
155b912ebb
(svn r10663) -Fix r10662: bad me, didn't comply with coding style, as penalty I updated the surrounding code to comply with coding style too; I will never do it again (I hope :p)
2007-07-23 16:48:19 +00:00
truelight
ef0be0e1dc
(svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
...
-Add: added 'M' as new shortcut for smallmap (bilbo)
-Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo)
-Add: added support for other keycodes to be possible used in the future (bilbo)
2007-07-23 16:39:27 +00:00
peter1138
243c59be6f
(svn r10542) -Codechange: use class member instead of global variable for null ticks value
2007-07-13 13:03:20 +00:00
truelight
3d684e3477
(svn r10537) -Backport r10536: added option for null-driver to configure how long it should run (-vnull:ticks=10000)
2007-07-13 10:46:07 +00:00
peter1138
e51d9d4fbd
(svn r10472) -Fix (r10741): typos prevented compilation
2007-07-07 21:14:36 +00:00
peter1138
8b81cdd2a6
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
2007-07-07 20:31:23 +00:00
peter1138
472bfba5f8
(svn r10458) -Fix (r10444): restore original descriptions for win32 drivers
2007-07-06 22:15:00 +00:00
peter1138
94315ff15f
(svn r10450) -Fix (r10444): Fix search & replace errors
2007-07-05 18:21:53 +00:00
peter1138
68c6add8cc
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
2007-07-05 12:23:54 +00:00
bjarni
beb673733a
(svn r10410) -Fix [FS458]: [OSX] if the resolution is changed to something that's too high for the monitor, then it's reduced to fit the monitor size (PinguTux)
...
This solves a possible crash
This also solves a graphical glitch where the titlebar can be drawn on top of the game area
Those issues only aplied to window mode
2007-07-02 16:37:12 +00:00
glx
69586c94ae
(svn r10399) -Fix (FS#962): [Windows] _wnd.has_focus was not properly set after using ALT-TAB
2007-06-30 15:02:21 +00:00
truelight
60f0610a85
(svn r10278) -Fix r10276: make the _realtime_tick less demanding on the CPU
2007-06-22 20:07:39 +00:00
truelight
2e19d3cf78
(svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
...
-Codechange: renamed _timer_counter to _palette_animation_counter, as that is what it is
2007-06-22 20:04:21 +00:00
truelight
af8a234db0
(svn r10255) -Codechange: remove some old debug code nobody was using anymore
2007-06-21 16:53:57 +00:00
glx
3fe19238b2
(svn r10251) -Fix (r10186, FS#907): alt-tab back into openttd could leave the taskbar visible
2007-06-21 15:48:00 +00:00
glx
edf68a04b0
(svn r10243) -Fix: crash when resizing with 32bpp and 'broken' display with 'non-standard' resolutions
2007-06-21 13:30:23 +00:00
truelight
65a3abe1c1
(svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends
2007-06-19 15:40:27 +00:00
glx
fc3ec8689b
(svn r10218) -Fix r10216: more compile errors
2007-06-19 15:26:10 +00:00
truelight
a7dd710f06
(svn r10217) -Fix r10216: forgot to declare 'blitter' in win32 and cocoa driver (tnx glx)
2007-06-19 15:18:26 +00:00
truelight
1c4760ee06
(svn r10216) -Fix: palette animation always redid all palette entries, where in fact only a few indexes were needed
...
-Codechange: allow blitters to handle palette animation internally or even disable it; 8bpp uses video-backend for palette animation
2007-06-19 15:04:08 +00:00
truelight
9a93a6006b
(svn r10192) -Fix r10190: forgot to change the includes of win32 and cocoa video-driver
2007-06-17 20:40:02 +00:00
truelight
003375d375
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
...
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
2007-06-17 20:30:28 +00:00
glx
22257f46c2
(svn r10186) -Fix (FS#876): don't mess desktop when using alt-tab (win32)
2007-06-17 19:00:45 +00:00
rubidium
347c28b71a
(svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
...
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
2007-06-17 15:48:57 +00:00
truelight
2f5c49abc2
(svn r10124) -Fix r10123: fix the OSX video driver properly
2007-06-12 23:10:47 +00:00
bjarni
ee4208ffe9
(svn r10123) -Fix r10121: the 8 bpp cocoa video driver works again
2007-06-12 23:06:56 +00:00
truelight
f3f744d36a
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
...
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
2007-06-12 20:24:12 +00:00
truelight
d7b4fb80d0
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
2007-05-14 15:20:50 +00:00
glx
75ba8f4489
(svn r9728) -Fix r9086: [win32] For some keyboard layout the 'console' key is a dead-key. It needs to be pressed twice to have an effect but the console is then opened and closed on the 'same' keypress (2 WM_CHAR events). So skip the first WM_CHAR generated to restore the 'console' key functionality.
2007-04-27 21:27:02 +00:00
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
rubidium
50b2088674
(svn r9266) -Codechange: unify the retrieval of the base paths a little more.
2007-03-17 11:36:04 +00:00
bjarni
50fe0fe059
(svn r9111) -Feature: [OSX] mighty mice and touchpads can now scroll the map (in all directions)
...
It has to be enabled first (in patches->interface) first and this will disable scrollwheel zooming
Note: patch setting "Map scrollwheel speed" might need to be changed since the "correct" setting
appears to depend on what kind of mouse is in use (mighty mouse or touchpad)
2007-03-11 10:55:35 +00:00
Darkvater
2a2ee534e9
(svn r9086) -Feature/Fix: [win32] Rewrite keyboard input and handle all keypresses in a WM_CHAR event. This saves us from doing translation (ToUnicode[Ex], ToAscii[Ex]), and we get free IME-input support as a plus.
2007-03-10 00:30:18 +00:00
Darkvater
86be8991c6
(svn r9085) -Codechange/Fix: [win32] Move the initialisation of _codepage (non-UNICODE) to winMain as a dedicated server, or different video driver will not have a win32 messageloop.
2007-03-10 00:29:20 +00:00
glx
b52c4dea25
(svn r9074) -Codechange: win32 dedicated console now doesn't need an extra 'enter' to fully quit
2007-03-09 00:15:43 +00:00
Darkvater
2536a14abd
(svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system.
2007-03-07 18:58:28 +00:00
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
bjarni
a24913d461
(svn r9039) -Fix r9034: missed the _pause in cocoa_v.mm
2007-03-06 22:01:59 +00:00
truelight
43133c766c
(svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
...
a symbol called _pause (and therefor our variable conflicts with
thatone. We shouldn't be using _ as global indicator.....)
2007-03-06 20:59:52 +00:00
Darkvater
b024134c6a
(svn r8994) -Fix [FS642, r3320]: [win32] Resolution doubled in cfg file when fullscreen mode used. Use _wnd.double_size which gives back its correct state with respect to double size and fullscreen.
2007-03-03 13:13:25 +00:00
truelight
322953ad2e
(svn r8967) -Fix (OSX): silent the warnings in cocoa_v.mm about deprecated stuff.. we know that\!
2007-03-02 00:36:16 +00:00
rubidium
f3f966e616
(svn r8907) -Fix (r3281): reading from an unitialized variable.
2007-02-26 00:41:24 +00:00
Darkvater
1bbbbeeef1
(svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
2007-02-23 12:56:10 +00:00
truelight
d431df8277
(svn r8756) [PSP] -Fix: made the dedicated code compile with PSP. It is almost UNIX, just it needs more includes ;)
...
(or more, it compiles, if it works is a whole other story ;))
2007-02-16 09:39:32 +00:00
Darkvater
4d4c1e0505
(svn r8691) -Cleanup: Some proper #endif comments for sound/music/video files, and a little elimination of magic numbers in Win32SoundStart
2007-02-12 21:55:10 +00:00
bjarni
ca1a88f6c4
(svn r8605) -Codechange: [OSX] changed all objective C to objective C++
...
This will permanently solve the issue where compilation on OSX broke because C++ code was added to some header files
-Note: (important if you develop mac specific code)
taken from http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html
gdb lacks an integrated C++ with Objective-C parser. This means that gdb won't be able to evaluate expressions that contain both C++ and Objective-C constructs.
gdb assumes that the language for ".mm" files is C++.
you can change it to objective C by typing: (gdb) set language objc
Mixing C++ and objective C has some limitation (see link for all of them)
2007-02-05 21:16:56 +00:00
truelight
203ccad578
(svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;)
2007-01-21 14:36:08 +00:00
truelight
6a145e06c3
(svn r8309) [WinCE] -Fix: WinCE doesn't know resolution changing
...
-Fix: WinCE doesn't know GetKeyboardState
-Fix: made a replacement of GetCurrentDirectory, where CurDir is assumed to be the dir the executable is located (esoftinteractive.com)
-Fix: the GCC compiler is more happy if the WinMain is called that
-Fix: a really old typo (missing ')') ;)
-Fix: GdiFlush() isn't supported on WinCE
2007-01-21 14:32:40 +00:00
bjarni
00b730ebca
(svn r8288) -Fix: [OSX] compiling with debug enabled now works again
...
-This is once again an obj-C vs C++ issue. I need to make a nice and permanent solution soon, but I need the debugger right now
2007-01-20 11:26:16 +00:00
bjarni
19bdb49e5b
(svn r8141) -Fix r8128: [OSX] now OSX can compile again.
...
Note: this is again another not so nice workaround as Objective C fails to include C++ code in the headers
We should move to Objective C++ as soon as possible, but such a change is not done overnight and
this quick fix will allow OSX to compile until the prober solution is done
2007-01-15 00:58:18 +00:00
KUDr
0edc029f9f
(svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h
2007-01-13 14:43:46 +00:00
rubidium
c5a7eaca65
(svn r8043) -Fix (8028): forgot setting a variable.
2007-01-10 20:11:13 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00
rubidium
4c2b993d1d
(svn r8028) -Fix: overflow of ticks was not handled properly, possibly resulting a non-reacting gameserver/gameclient.
2007-01-10 15:00:20 +00:00
bjarni
7dff5fccd3
(svn r7886) -Fix: [OSX] control+enter will no longer toggle fullscreen as it collided with other hotkeys (pv2b)
...
People should use command+enter as it was originally intended (this key combo also worked before this commit)
2007-01-05 19:50:44 +00:00
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00