Michael Lutz
74b7f0a9aa
Fix: [OSX] Remove some OSX compiler warnings on newer SDKs/compilers.
2018-04-10 23:30:01 +02:00
Michael Lutz
4bfd277017
Codechange: [Win32] Use OS function for mouse tracking if present.
2018-04-10 21:07:27 +02:00
michi_cc
c722cb26b8
(svn r27935) -Fix [FS#6629]: [Win32] Right mouse scrolling didn't work properly with the Windows 10 Fall Creators Update.
2017-12-09 19:21:45 +00:00
frosch
b4b98e5165
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
frosch
b1fe837b8e
(svn r27775) -Fix [FS#6510]: Insufficient thread synchronisation when switching blitters. (JGR)
2017-03-11 13:05:54 +00:00
frosch
d5f82bf55b
(svn r27774) -Fix [FS#5889]: Enabling palette animation for 32bpp blitters while paused skipped initialisation of the palette and resulted in black windows.
...
-Revert (r23978): No SDL-specific fix required anymore. The new fix applies to all backends.
2017-03-11 12:52:26 +00:00
michi_cc
94b3965989
(svn r27675) -Fix [FS#6502]: [OSX] Building with 10.11 or 10.12 SDKs.
2016-10-31 19:29:01 +00:00
michi_cc
c83306391e
(svn r27673) -Add: [Win32] Thread names for windows debuggers.
2016-10-30 18:22:55 +00:00
frosch
31f046bd9b
(svn r27670) -Add: [FS#6471] Assign descriptive names to (GNU pthread) threads. (JGR)
2016-10-30 17:29:33 +00:00
alberth
0adfb1ac6f
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04 16:06:50 +00:00
alberth
597380e099
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
2016-09-04 12:57:43 +00:00
frosch
352e528cda
(svn r27167) -Fix: [SDL, Windows] Right-mouse-button scrolling scrolled/jumped way to far, when OpenTTD lagged during mouse event processing.
2015-02-22 23:06:45 +00:00
fonsinchen
306b6a11ee
(svn r27046) -Fix [FS#5812]: Don't require double-press from non-dead console hotkeys.
2014-10-26 20:01:36 +00:00
planetmaker
3df230af62
(svn r26943) -Fix: [Win32] Silence a warning about comparison of signed and unsigned variables when using gcc
2014-09-30 21:10:32 +00:00
michi_cc
5a2fd3630b
(svn r26818) -Fix [FS#AndyShouldHaveFoundFlySprayByNow] (r26758): [OSX] Line history and scrolling in the console window went on a walk.
2014-09-13 22:00:10 +00:00
michi_cc
2b3b8c93e7
(svn r26758) -Fix [FS#5972]: [OSX] Implement more of the text editing API to prevent crashes and improve IME support.
2014-08-24 10:34:43 +00:00
planetmaker
bcb9c64ac8
(svn r26709) -Fix (r15892 and others) [FS#6069]: [OSX] Compilation fails with some lzo2 versions if we define __LP64__ as 0 instead of checking whether it is defined (kernigh2)
2014-07-30 20:19:29 +00:00
rubidium
b476086c39
(svn r26538) -Codechange: remove double accounting of the drivers
2014-04-28 21:06:51 +00:00
frosch
631e8b45fd
(svn r26522) -Add: A config-file-only setting to disable usage of 8bpp video modes.
...
-Remove: [win32] fullscreen_bpp setting, which is replaced by above setting.
-Change: Disable usage of 8bpp blitters and video modes by default. Many modern OS and hardware cause issues with those.
2014-04-27 12:15:14 +00:00
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
rubidium
781dd48949
(svn r26502) -Fix: OSX compilation error
2014-04-24 18:44:38 +00:00
frosch
0e8bfeb7a9
(svn r26496) -Fix (r1547): Reading console input on dedicated server relied on unspecified behaviour.
2014-04-24 17:49:31 +00:00
rubidium
21f991e235
(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
2014-04-23 21:23:21 +00:00
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
2014-04-23 21:12:09 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
planetmaker
3e9c10f9e1
(svn r26449) -Add: Allow more sound sleep for dedicated servers when there's nothing to do and nobody paying attention
2014-04-08 20:19:41 +00:00
michi_cc
e15446bc58
(svn r26367) -Fix: [Win32] Use a separate event to indicate that the drawing thread has finished initialising, preventing potential deadlocks.
2014-02-23 16:08:50 +00:00
fonsinchen
d8eda06a5a
(svn r26366) -Fix: Protect the windows video driver from concurrent access (frosch123)
2014-02-23 14:16:36 +00:00
fonsinchen
b4a015a4bd
(svn r26365) -Fix [FS#5867]: Don't draw the cursor when its sprite isn't ready and set _screen.dst_ptr immediately when the buffer changes (frosch123)
2014-02-23 14:15:55 +00:00
frosch
aaa6d0f9ae
(svn r26360) -Revert (r25550) / Fix [FS#5922]: ClientSizeChanged is only called via WndProcGdi which already has the mutex. The issue which r25550 tried to fix still exists as FS#5867.
2014-02-22 14:26:07 +00:00
frosch
27eede06c9
(svn r26351) -Fix: Protect all VideoDriver_SDL methods with the _draw_mutex.
2014-02-16 21:57:22 +00:00
rubidium
a942619911
(svn r26247) -Fix [FS#5854, FS#5855]: Possible out of bounds reads with the sse blitters (MJP)
2014-01-13 17:54:24 +00:00
rubidium
fb05674cb7
(svn r26211) -Add: specialised non-animated SS2 blitter (MJP)
...
With 32bpp base set about 30% faster than 32bpp-optimized, or about 10% for 8bpp base sets in the Draw function. Respectively about 5 and 1% of total run time
2014-01-02 23:12:32 +00:00
rubidium
2618d960e3
(svn r26209) -Codechange: remove some template magic and simplify some code
2014-01-02 22:41:58 +00:00
fonsinchen
c71aa27b92
(svn r26186) -Fix: Don't check for equality of MAC_OS_X_VERSION_MAX_ALLOWED.
2013-12-30 14:46:24 +00:00
rubidium
defda16eb6
(svn r26108) -Codechange: some coding style (whitespace)
2013-11-25 14:30:22 +00:00
rubidium
6996b441d9
(svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations
2013-11-25 14:26:46 +00:00
michi_cc
2708aff853
(svn r26023) -Fix [FS#5805] (r25686): [OSX] Checking for a valid NSTextInputContext is supposed to fail on 10.4 according to docs, but somehow didn't, leading to a crash when an edit box lost focus.
2013-11-17 12:05:40 +00:00
rubidium
3b9f92e14c
(svn r26009) -Fix: warning about conditional expression with enumeral with non-enumeral type
2013-11-16 10:05:57 +00:00
michi_cc
a985f19d5a
(svn r26003) -Fix [FS#5795b] (r25743): [OSX] Some hotkeys were still triggered during text input.
2013-11-14 23:04:04 +00:00
michi_cc
8f8173c3fe
(svn r26002) -Fix: [OSX] If the console hotkey is a dead key, require two presses to toggle the console, allowing input of accented characters.
2013-11-14 23:03:59 +00:00
michi_cc
8ceef6ec61
(svn r26001) -Fix [FS#5795a] (r25686): [OSX] Clear any pending marked characters from an edit box losing focus.
2013-11-14 23:03:54 +00:00
rubidium
52883db91b
(svn r25970) -Fix [FS#5787]: [SDL] Recursive mutex locking when changing blitter
2013-11-12 18:31:12 +00:00
michi_cc
9b68e4f864
(svn r25962) -Fix (r25951): [OSX] Do the SDK version test the proper way 'round.
2013-11-09 14:47:03 +00:00
michi_cc
a41b8c851d
(svn r25951) -Fix [FS#5797]: [OSX] Disable the old fullscreen sub-driver when compiling with SDK versions 10.9+.
2013-11-08 20:18:31 +00:00
michi_cc
a298a62098
(svn r25950) -Codechange: [OSX] Move some functions used by all video sub-drivers into the common source file.
2013-11-08 20:18:27 +00:00
michi_cc
f36396929a
(svn r25751) -Fix (r25657): [OSX] Restore fullscreen state also when starting on 10.7+.
2013-08-31 20:17:29 +00:00
michi_cc
6bbca9307d
(svn r25743) -Fix [FS#5705]: [OSX] Text input into an edit box would trigger hotkeys.
2013-08-25 11:23:10 +00:00
fonsinchen
0baa72aff9
(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
2013-08-10 12:47:24 +00:00
fonsinchen
fd16b0c65c
(svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing
2013-08-10 12:47:22 +00:00
fonsinchen
8222e18586
(svn r25712) -Fix: define kCGBitmapByteOrder32Host to 0 if it's missing.
2013-08-10 12:47:20 +00:00
fonsinchen
f42d60150d
(svn r25711) -Fix: don't use NULL as integer
2013-08-10 12:47:18 +00:00
fonsinchen
a9fde2856c
(svn r25710) -Fix: string arguments to NSNotificationCenter::addObserver and NSNotificationCenter::postNotificationName can't be const in certain versions of OSX
2013-08-10 12:47:16 +00:00
michi_cc
b3ecfbb67a
(svn r25693) -Add: [OSX] Support the new IME functions introduced with 10.5.
2013-08-05 20:38:02 +00:00
michi_cc
30867c487f
(svn r25691) -Add: [OSX] Support for mouse selection in the IME composition string.
2013-08-05 20:37:53 +00:00
michi_cc
e2ec0ddb03
(svn r25690) -Change: [OSX] Position the candidate window at the caret position.
2013-08-05 20:37:48 +00:00
michi_cc
f5e4131492
(svn r25689) -Add: [OSX] Display the IME composition string ourself.
2013-08-05 20:37:44 +00:00
michi_cc
c64e297e0c
(svn r25688) -Codechange: [OSX] Make our view aware of text input by IMEs.
2013-08-05 20:37:40 +00:00
michi_cc
643a294e68
(svn r25687) -Codechange: [OSX] Pass text input directly down to the text handling.
2013-08-05 20:37:37 +00:00
michi_cc
e4d48f3a3b
(svn r25686) -Codechange: [OSX] Abandon IME input if the edit box lost the focus.
2013-08-05 20:37:33 +00:00
michi_cc
0883cf76e3
(svn r25684) -Change: [Win32] Draw the composition string ourselves if possible.
2013-08-05 20:37:25 +00:00
michi_cc
cbdfd31a3c
(svn r25682) -Change: [Win32] Position the IME candidate window at the caret position.
2013-08-05 20:37:18 +00:00
michi_cc
da09fd3077
(svn r25681) -Change: [Win32] Position the IME composition window at the caret position.
2013-08-05 20:37:14 +00:00
michi_cc
21126aec62
(svn r25680) -Codechange: [Win32] Cancel the current IME composition when the input focus changes.
2013-08-05 20:37:11 +00:00
michi_cc
7422120014
(svn r25679) -Codechange: [Win32] Get the result string of an IME input directly without a trip through the window messaging system.
2013-08-05 20:37:06 +00:00
michi_cc
13873d2534
(svn r25678) -Codechange: Notify the video driver when an edit box lost (global) focus so it can abort any current input composition.
2013-08-05 20:37:02 +00:00
michi_cc
63332afcf0
(svn r25675) -Fix: [Win32] Handle DBCS characters correctly in the non-Unicode build.
2013-08-05 20:36:51 +00:00
michi_cc
e37968aadd
(svn r25673) -Fix: [Win32] Use the right code page for converting ANSI strings into UTF-8 for non-Unicode builds. And don't crap out on DBCS code pages either.
2013-08-05 20:36:43 +00:00
michi_cc
fdc436b531
(svn r25672) -Fix: [Win32] Handle Unicode characters from outside the BMP correctly.
2013-08-05 20:36:40 +00:00
michi_cc
019984a14f
(svn r25671) -Codechange: Pass character and key code separately to the keyboard handler.
2013-08-05 20:36:36 +00:00
michi_cc
923eb009e8
(svn r25667) -Fix: [Win32] Only forward key presses to the IME system if an edit box has the input focus.
2013-08-05 20:36:20 +00:00
michi_cc
8b476de3bf
(svn r25666) -Feature [FS#4760]: [OSX] Pinch gesture support for zooming. (Based on patch by leecbaker)
2013-08-05 20:36:17 +00:00
michi_cc
8003da77aa
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
2013-08-05 20:36:13 +00:00
michi_cc
1ae357e905
(svn r25664) -Add [FS#4847]: [OSX] Bootstrap downloading of a baseset. (Matthieu)
2013-08-05 20:36:10 +00:00
michi_cc
4ec314989d
(svn r25660) -Fix: [OSX] The name's OpenTTD, not OTTD.
2013-08-05 20:35:56 +00:00
michi_cc
d23fdfa403
(svn r25659) -Fix [FS#4420]: [OSX] System mouse cursor could become visible during dragging. (Matthieu)
2013-08-05 20:35:53 +00:00
michi_cc
408c595eb8
(svn r25658) -Fix [FS#4392]: [OSX] The mouse cursor would sometimes jump near the window borders. (Matthieu)
2013-08-05 20:35:49 +00:00
michi_cc
7ba4d425c8
(svn r25657) -Fix [FS#4744]: [OSX] The new 10.7 fullscreen code can now also be compiled with older SDK versions.
2013-08-05 20:35:46 +00:00
michi_cc
2702fe88d7
(svn r25656) -Cleanup: Coding style.
2013-08-05 20:35:42 +00:00
michi_cc
6d50b10074
(svn r25655) -Fix: [OSX] Mouse cursor wasn't displayed properly after switching to fullscreen on 10.7+. (Based on patch by Maedhros)
2013-08-05 20:35:38 +00:00
rubidium
d9065fbfbe
(svn r25550) -Fix [FS#5571]: [Windows] Race condition between two drawing threads could crash OpenTTD
2013-07-01 19:48:52 +00:00
rubidium
4fbcb73166
(svn r25523) -Fix [FS#5587]: SDL does not give an event when an application gets mouse focus while going to full screen, so manually force the mouse-is-in-window state
2013-06-29 18:21:19 +00:00
matthijs
0d28dc92fc
(svn r25318) -Fix: [SDL, FS#5580] Keyboard input stopped working after fullscreen toggle
2013-06-04 06:36:59 +00:00
rubidium
dcf3df65d3
(svn r25017) -Fix [FS#5466]: crash after bootstrap download of 32bits base set due to referencing a deleted mutex
2013-02-17 20:37:18 +00:00
matthijs
2752dd7bbe
(svn r25003) -Fix (r24993): [SDL] Keep a flag to remember if a hardware palette was requested.
...
- Previously, the code would query the SDL_HWPALETTE flag, which doesn't always match the requested value.
- This would cause SDL to be restarted on every window resize event, effectively breaking resizing.
2013-02-15 11:01:45 +00:00
matthijs
afd1e49224
(svn r25002) -Doc: [SDL] Fix typo in comment.
2013-02-15 11:01:43 +00:00
matthijs
328ed1cf94
(svn r24993) -Fix: [SDL] Improve 8bpp hardware palette support. Instead of always requesting SDL_HWPALETTE, it is now only done for 8bp blitters in fullscreen mode.
...
- This fixes 32bpp blitters on 8bpp X11, which would only render garbage with SDL_HWPALETTE.
- This prevents the colors of other applications from being messed up when running a 8bpp blitter on a 8bpp system.
- When running a 8bpp blitter on an 8bpp system without SDL_HWPALETTE (e.g., in windowed mode), this uses a new shadow surface with color approximation.
- The use of a hardware palette can be forced on and off using -v sdl:hw_palette=1 or -v sdl:hw_palette=0
2013-02-14 11:06:12 +00:00
matthijs
afcb4a25b2
(svn r24992) -Codechange: [SDL] Make CreateMainSurface and PollEvent private methods instead of static functions.
2013-02-14 11:06:06 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
rubidium
d5d96ba683
(svn r24877) -Fix: some whitespace "errors"
2013-01-01 10:52:32 +00:00
michi_cc
02f39ab1ee
(svn r24781) -Fix (r24762): [Win32] MinGW compiler warning.
2012-12-03 22:08:00 +00:00
michi_cc
e67c717c2f
(svn r24762) -Fix [FS#5359]: [Win32] Don't crash when switching to an unsupported fullscreen display mode (like 8 bpp modes in Windows 8).
2012-11-25 12:14:13 +00:00
yexo
1f75f81a41
(svn r24524) -Fix [FS#5296]: fix some compile problems in mac-only code (__ln__)
2012-09-13 18:42:33 +00:00
glx
ad48f766f7
(svn r24394) -Fix (r24188): changing resolution didn't resize the window
2012-07-10 17:47:03 +00:00
truebrain
353fd97de6
(svn r24189) -Fix: when going to fullscreen and back, restore to the resolution you were, not to the fullscreen resolution (Windows only)
2012-04-30 16:49:26 +00:00
truebrain
39912b7bde
(svn r24188) -Fix-ish [FS#5151] (r1): when changing the basics of a window (fullscreen, 8bpp/32bpp), and a window already exists, it was forced out of maximize mode, and its resolution/position was reset, often causing unwanted side-effects. As a "bonus", a WC_SIZE was triggered, and if the system was going from 8bpp to 32pp, this caused a forced window update in a limbo-state of the blitter (not fully 32bpp just yet, but for sure no longer 8bpp); this could cause random memory access which could lead to ACCESS_VIOLATIONS
2012-04-30 16:48:47 +00:00
rubidium
74785478ec
(svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter
2012-02-23 21:10:08 +00:00
rubidium
4db85fcc4d
(svn r23978) -Fix: [SDL] Palette update was done too late making switching from 8bpp -> 32bpp look ugly
2012-02-23 16:23:09 +00:00
matthijs
311413a091
(svn r23910) -Fix: [SDL] Handle the SDL_VIDEOEXPOSE event.
...
- It seems this event is never triggered when using 1.2 (it has some
autorefresh feature which seems to have been removed in 1.3), but in theory
this event could also trigger on 1.2.
- Note that this fixes redraw issues when compiling against SDL 1.3, but it
still uses the "compatibility" rendering API using SDL_SetVideoMode and
SDL_UpdateRects. Eventually (when 1.3 is stable and released as 2.0), this
should probably be rewritting to use the new Windows and Renderers
available in SDL 1.3.
2012-02-07 10:27:48 +00:00
matthijs
cba6390973
(svn r23909) -Fix: [SDL] Fix keyboard-related segfault when compiling against SDL 1.3.
2012-02-07 10:12:11 +00:00
rubidium
af7ea8c525
(svn r23891) -Fix-ish: compile failures with SDL 1.3
2012-02-04 16:24:25 +00:00
michi_cc
52175a4260
(svn r23749) -Fix: [Win32] Work around a possible deadlock when initialising threaded drawing.
2012-01-04 00:45:36 +00:00
rubidium
fd559171b4
(svn r23527) -Codechange: unify colo(u)r as far as it goes
2011-12-15 22:02:00 +00:00
rubidium
7e7c262167
(svn r23488) -Fix [FS#4879] (r23241): artefacts when right click mouse moving with the allegro video driver
2011-12-11 07:26:13 +00:00
michi_cc
7099faba28
(svn r23482) -Change: [Win32] Move re-painting the window and doing palette animation into a separate thread.
2011-12-10 16:54:46 +00:00
rubidium
b231e80125
(svn r23470) -Codechange: move declaration of SwitchToMode to a header instead of declaring it in 6 other files
2011-12-10 08:31:14 +00:00
rubidium
ccededbf77
(svn r23451) -Codechange: [SDL] Move 32bpp-anim palette animation to the draw thread instead of the single threaded bit of the game loop. This causes a speedup of up to 15% when animation is turned on with the 32bpp-anim blitter
2011-12-08 20:01:31 +00:00
rubidium
61625e53c9
(svn r23448) -Fix: keep a local copy of the palette in the 32bpp animated blitter so changes of the palette data during the game don't influence drawing (with SDL)
2011-12-08 19:37:33 +00:00
rubidium
2ccbd2a6f5
(svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure
2011-12-08 18:13:29 +00:00
rubidium
6e31c2f068
(svn r23241) -Codechange: make the decision when to go to the custom drawn cursor more prominently during the initialisation of OpenTTD
2011-11-17 21:09:08 +00:00
michi_cc
6a2735d24e
(svn r23119) -Fix: [Win32] Don't show a crash/assertion message box for a GUI-less video driver.
2011-11-04 23:47:00 +00:00
michi_cc
8c4c616cfe
(svn r23003) -Fix (r22999): Missing semicolon.
2011-10-04 22:12:43 +00:00
michi_cc
6dbb050a32
(svn r22999) -Codechange: Allow changing the blitter during the running game.
2011-10-04 21:35:40 +00:00
planetmaker
6a72d64dbe
(svn r22943) -Fix: [OSX] Typo broke debug compilation
2011-09-19 05:37:11 +00:00
planetmaker
58f00d786c
(svn r22921) -Fix: [OSX] Don't allow the old fullscreen mode also not as fallback on OSX 10.7. Also add a few sprinkles of coding style accross cocoa display drivers
2011-09-11 12:52:44 +00:00
rubidium
bffa93a4e9
(svn r22910) -Fix [FS#4617]: icon would (almost) never be shown for SDL builds
2011-09-09 09:13:18 +00:00
planetmaker
20e359acbe
(svn r22895) -Add: [OSX] Alternative code for the API calls deprecated in OSX 10.6 in the quartz video driver
2011-09-05 15:52:04 +00:00
planetmaker
45b099c655
(svn r22894) -Doc: Some sprinkles of doxygen for the cocoa video driver
2011-09-05 05:31:29 +00:00
planetmaker
bce482c76f
(svn r22893) -Fix [FS#4744]: [OSX] Compilation on OSX 10.7 was broken (based on patch by leecbaker)
...
-Add: [OSX] Support for fullscreen mode when compiled against SDK 10.7. Otherwise fullscreen mode is disabled when OpenTTD is run on OSX Lion
2011-09-04 17:49:08 +00:00
rubidium
9fe4b959ac
(svn r22818) -Fix [FS#4742] (r22796, rlongago): don't spawn threads for world generation and NewGRF scanning when using the dedicated or null video driver regardless of the used blitter
2011-08-24 12:11:10 +00:00
rubidium
421053a694
(svn r22788) -Codechange: move modal progress related functions and variables to progress.cpp/h
2011-08-21 12:48:46 +00:00
rubidium
37415b9cf7
(svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress
2011-08-21 12:46:46 +00:00
planetmaker
e3d9879690
(svn r22678) -Doc: More doxygen sprinkles in MacOSX code and cocoa video driver
2011-07-21 16:13:34 +00:00
alberth
f1cae9960f
(svn r22512) -Add: Save heightmap.
2011-05-28 13:55:34 +00:00
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
rubidium
1a515e6344
(svn r22405) -Document: some more "random-ish" tidbits
2011-05-01 19:14:12 +00:00
rubidium
3e5924b10f
(svn r22149) -Fix [FS#4521]: Windows video driver crashed when it couldn't go to full screen at the resolution of the configuration file when starting OpenTTD
2011-02-26 19:13:58 +00:00
alberth
31386c42a7
(svn r22145) -Codechange: Do explicit test for non-bool values.
2011-02-25 22:04:38 +00:00
alberth
1dbc0a20be
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
2011-02-25 21:53:43 +00:00
glx
1b2ef66416
(svn r22081) -Fix [FS#4489]: if fullscreen fails with current resolution, use desktop resolution
2011-02-14 20:16:36 +00:00
rubidium
1d0d7635e0
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
2011-02-07 22:49:38 +00:00
planetmaker
9ddcbaf9b7
(svn r21684) -Fix [FS#4360] (r21573): Silence some compile warnings
2011-01-01 08:23:46 +00:00
planetmaker
adc1760b0d
(svn r21578) -Fix [FS#2585]: [OSX] A double mouse cursor was shown under certain circumstances (based on patch by matheweis)
2010-12-21 16:05:25 +00:00
planetmaker
30eef98ec0
(svn r21577) -Codechange: [OSX] Deduplicate code by moving the handling of the window class for screen drivers to a common class
2010-12-21 16:02:55 +00:00
planetmaker
e38f96d609
(svn r21576) -Codechange: [OSX] Deduplicate code by moving the handling of the view for windowed screen drivers to a common class
2010-12-21 16:00:42 +00:00
planetmaker
26575ab8f8
(svn r21575) -Codechange: [OSX] Use the same class for the window delegate routines in windowed screen drivers
2010-12-21 15:57:55 +00:00
planetmaker
7ab04792c5
(svn r21574) -Codechange: [OSX] Move the variable declaration of the screen drivers to the generic class, deduplicating code
2010-12-21 15:56:02 +00:00
planetmaker
574e0830f1
(svn r21573) -Codechange: [OSX] Unify the naming of variables among different screen drivers a bit
2010-12-21 15:53:20 +00:00
planetmaker
0d3a0bb1c7
(svn r21572) -Codechange: [OSX] One palette is enough, we cannot use two colour depths at once
2010-12-21 15:48:43 +00:00
planetmaker
3448853b55
(svn r21537) -Cleanup: Add a few sprinkles of coding style
2010-12-18 21:54:09 +00:00
planetmaker
832625bb0e
(svn r21522) -Fix: [OSX] Silence a warning when compiling without quartz and quickdraw
2010-12-15 01:30:13 +00:00
rubidium
69766049ce
(svn r21396) -Codechange: rename SafeSaveOrLoad to SaveLoad (it only did load), and add support for (safe) loading with a LoadFilter
2010-12-05 14:43:10 +00:00
rubidium
ab44c91778
(svn r21252) -Codechange: introduce a constant for the number of milliseconds per game tick and use it
2010-11-19 10:35:59 +00:00
planetmaker
94c45d9cc3
(svn r21245) -Fix (r21200): [OSX] Make gcc 4.2 happy
2010-11-18 20:45:27 +00:00
planetmaker
8d42b04e3b
(svn r21200) -Fix: [OSX] Don't let the mouse cursor jump when switching to full screen mode
2010-11-15 19:53:15 +00:00
planetmaker
03c012797b
(svn r21037) -Fix: [OSX] Mouse cursor would leave footprint with 8bpp blitter when switching to full screen
2010-10-25 06:55:54 +00:00
planetmaker
47523d86fb
(svn r21036) -Fix: [OSX] Properly set the palette when using the 8bpp blitter during start-up
2010-10-25 06:50:48 +00:00
rubidium
4173ba76fa
(svn r20809) -Fix (r20809): as usual with these user provided Mac OS X patches lately... they either fail to compile or spew warnings
2010-09-15 21:55:55 +00:00
rubidium
4915f47264
(svn r20808) -Add [FS#4110]: [OSX] support for input using dead keys (Zydeco)
2010-09-15 21:19:41 +00:00
rubidium
c0ba81e617
(svn r20783) -Change/Fix: do autosave-on-exit as well when using kill/CTRL-C to terminate a dedicated OpenTTD
2010-09-10 20:03:45 +00:00
rubidium
134712ec64
(svn r20619) -Fix [FS#4070]: [OSX] Limit minimum window size to 64x64 like all other platforms (matheweis)
2010-08-25 19:05:34 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
terkhen
88ca183191
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
2010-07-29 14:26:28 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
34764feac2
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
2010-07-19 16:21:49 +00:00
rubidium
45213e5708
(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location
2010-07-19 15:44:49 +00:00
glx
4796be85a5
(svn r20084) -Fix [FS#3919] (r7157): don't try to handle mouse events when the cursor ha left the window
2010-07-06 21:10:47 +00:00
peter1138
4b4e97695f
(svn r19965) -Cleanup: Use size of buffer, not magic number.
2010-06-12 10:55:13 +00:00
frosch
9e53f1e004
(svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation.
2010-06-05 13:32:42 +00:00
frosch
e864701693
(svn r19861) -Fix (r19814): Silence a warning.
2010-05-19 18:38:18 +00:00
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
2010-05-13 10:14:29 +00:00
rubidium
465e3be105
(svn r19593) -Codechange: improve loading/executing the desync logs
2010-04-09 17:08:44 +00:00
smatz
c5b34444af
(svn r19084) -Codechange: minor coding-style fixups
2010-02-10 17:37:47 +00:00
yexo
d858264ca6
(svn r19012) -Fix (r19003): macos.h is not in video/cocoa/ but in os/macosx/.
2010-02-04 22:17:41 +00:00
rubidium
e62b122bb1
(svn r19003) -Fix [FS#3194]: [OSX] OS X 10.5+ does not (always?) handle 8bpp graphics in a suitable manner. This is actually not a fix but a nasty work around; you can still easily trigger the bug/issue by overriding the 'default' blitter choice (Brad Oliver). I can/have not test(ed) (including compiling) this fix.
...
Bjarni once suggested that 8bpp works for him on 10.5, so apparantly not all 10.5+ does not handle 8bpp graphics. Nevertheless, it seemed that for some systems the already existing 'does this support 8bpp' did not work, i.e. the OS API seemed to suggest that 8bpp worked when it actually did not. So, I don't know what is going on precisely here but it's definitely not nice to suggest that it supports 8bpp when it doesn't. So just ditch 8bpp support for anything that we suspect might not support 8bpp...
2010-02-04 14:32:12 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
7aeccb9bd0
(svn r18796) -Fix [FS#3521]: [SDL] possible deadlock when killing OpenTTD while starting it
2010-01-13 21:34:48 +00:00
rubidium
9c579a5adf
(svn r18792) -Fix [FS#3522] (r18709): crash when using the 32bpp blitter with a dedicated server
2010-01-12 18:09:48 +00:00
peter1138
c3fffe7496
(svn r18790) -Revert (r18001,r18177,FS#3515): Viewport could still jump under high CPU load. Revert as change caused more problems than it fixed.
2010-01-12 09:54:18 +00:00
peter1138
abb147d974
(svn r18709) -Fix (r10227,FS#3464): Animation buffer for 32bpp-anim blitter was only validated during sprite blitting, other drawing operations didn't check it. Initial startup and window resize could therefore lead to crash.
2010-01-04 02:32:36 +00:00
michi_cc
4d9097cafb
(svn r18573) -Fix [FS#3198]: [OSX] Try to get a generic RGB colour space if getting the system colour profile failed. (tyler)
2009-12-20 16:10:44 +00:00
rubidium
c811f3bd21
(svn r18547) -Fix [FS#3388]: missing thread synchronisation when changing the resolution for SDL via the in game menu
2009-12-19 19:29:01 +00:00
frosch
29d6491605
(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.
2009-12-19 18:46:40 +00:00
peter1138
3addf58f30
(svn r18390) -Fix (r17776): [SDL] Reinstate pointer update on 'idle' loop.
2009-12-03 08:24:39 +00:00
peter1138
b0049500a6
(svn r18177) -Fix (r18001): [SDL] Viewport could jump when mouse moved and right button pressed at the same time.
2009-11-18 23:07:29 +00:00
rubidium
88a7e23897
(svn r18031) -Codechange: since basically r7157 adding up 'all' mouse movement isn't needed anymore because after each even that movement is handled and the counter is reset. As such simply assigning instead of adding works.
2009-11-09 16:07:03 +00:00
rubidium
cbf4b80b86
(svn r18030) -Fix: screen jumped a bit for at least SDL and Allegro when right-click-dragging
2009-11-09 16:05:24 +00:00
peter1138
723c19571f
(svn r18001) -Codechange: [SDL] When the mouse cursor is locked into position when scrolling a viewport, warp the mouse pointer to the centre of the window. This gives maximum freedom of movement. The pointer position is restored when the lock is removed. Visually the mouse cursor stays where it was.
2009-11-07 21:41:41 +00:00
smatz
da54a01114
(svn r17950) -Fix (r17776): _draw_mutex was never destroyed, _draw_thread was never joined
2009-11-02 13:36:17 +00:00
smatz
dc4b251dbd
(svn r17949) -Fix (r17776): unlock mutex before deleting it when creating drawing thread failed
2009-11-02 12:12:13 +00:00
rubidium
cfcf3159b2
(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map
2009-10-19 20:32:05 +00:00
michi_cc
144febd2d9
(svn r17793) -Fix: [OSX] The splash image wasn't displayed if the Quartz video driver was used.
2009-10-17 22:36:39 +00:00
rubidium
c37029d5e1
(svn r17787) -Codechange: be a bit more verbose about while allegro failed with some actions.
2009-10-17 14:39:43 +00:00
rubidium
f4f4044859
(svn r17776) -Codechange: [SDL] make "update the video card"-process asynchronious. Profiling with gprof etc. hasn't shown us that DrawSurfaceToScreen takes a significant amount of CPU; only using TIC/TOC it became apparant that it was a heavy CPU-cycle user or that it was waiting for something.
...
The benefit of making this function asynchronious ranges from 2%-25% (real time) during fast forward on dual core/hyperthreading-enabled CPUs; 8bpp improvements are, in my test cases, significantly smaller than 32bpp improvements.
On single core non-hyperthreading-enabled CPUs the extra locking/scheduling costs up to 1% extra realtime in fast forward. You can use -v sdl:no_threads to disable threading and undo this loss.
During normal non-fast-forwarded games the benefit/costs are negligable except when the gameloop takes more than about 90% of the time of a tick.
Note that allegro's performance does not improve with this system, likely due to their way of getting data to the video card. It is not implemented for the OS X/Windows video backends, unless (ofcourse) SDL is used there.
Funny is that the performance of the 32bpp(-anim) blitter is, at least in some test cases, significantly faster (more than 10%) than the 8bpp(-optimized) blitter when looking at real time in fast forward on a dual core CPU; it was slower.
The idea comes from a paper/report by Idar Borlaug and Knut Imar Hagen.
2009-10-15 17:41:06 +00:00
rubidium
7341834430
(svn r17773) -Cleanup: sdl.h isn't needed for allegro
2009-10-14 08:14:57 +00:00
michi_cc
2b7e242872
(svn r17768) -Fix (r17715): [OSX] Newer GCC versions don't like jumping over variable definitions with goto's. (planetmaker)
2009-10-12 00:19:11 +00:00
michi_cc
d900b0d628
(svn r17717) -Codechange: [OSX] Replace deprecated variable type.
2009-10-04 21:39:12 +00:00
michi_cc
6ad7440ae5
(svn r17716) -Codechange: [OSX] Invoke a (semi-)private Objective-C method in a way that does not rely on the SDK version.
2009-10-04 21:39:08 +00:00
michi_cc
dbb13fd856
(svn r17715) -Cleanup: [OSX] And a final round of coding style and some cleaning.
2009-10-04 21:36:26 +00:00
michi_cc
ba6866128d
(svn r17714) -Cleanup: [OSX] Apply more coding style.
2009-10-04 21:36:22 +00:00
michi_cc
9b54d5bbd7
(svn r17713) -Cleanup: [OSX] Move variable definitions to first use and apply more coding style.
2009-10-04 21:36:17 +00:00
michi_cc
ec90a8778f
(svn r17712) -Codechange [FS#1411]: [OSX] Replace undocumented process manager API calls with a documented alternative. (pyth)
2009-10-04 21:33:36 +00:00
michi_cc
8484e08ee0
(svn r17711) -Codechange: [OSX] Don't use deprecated methods to construct a Cocoa string.
2009-10-04 21:33:31 +00:00
michi_cc
a831143f45
(svn r17707) -Fix: [OSX] Show the OS mouse cursor when displaying a dialog box if it was hidden.
2009-10-04 21:08:34 +00:00
michi_cc
5f67762a7f
(svn r17706) -Codechange: [OSX] Rework the crash handling to use the common CrashLog infrastructure.
2009-10-04 21:08:30 +00:00
michi_cc
10ca710e98
(svn r17702) -Change: [OSX] Assure that the minimal OSX version is defined in all cases.
...
-Codechange: [OSX] Improve conditional defines for OS version dependant code.
2009-10-04 20:53:22 +00:00
smatz
6c7f8fc8b4
(svn r17701) -Codechange: don't start line with a space if it's not inside comment
2009-10-04 20:51:50 +00:00
rubidium
9d0b10ccda
(svn r17583) -Change: make SDL's video driver more likely to be loaded than Allegro's video driver; SDL seems to perform better.
2009-09-20 10:19:13 +00:00
rubidium
9168ddd550
(svn r17438) -Fix (r17428): ofcourse some part of the OSX port would be forgotten due to it being so much different than the rest :(
2009-09-06 23:12:25 +00:00
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