michi_cc
3b8e61f1b6
(svn r25682) -Change: [Win32] Position the IME candidate window at the caret position.
2013-08-05 20:37:18 +00:00
michi_cc
fa7a779cf7
(svn r25681) -Change: [Win32] Position the IME composition window at the caret position.
2013-08-05 20:37:14 +00:00
michi_cc
b4a36ae257
(svn r25680) -Codechange: [Win32] Cancel the current IME composition when the input focus changes.
2013-08-05 20:37:11 +00:00
michi_cc
1880c36405
(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
07cd393f7e
(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
8151f04e6d
(svn r25675) -Fix: [Win32] Handle DBCS characters correctly in the non-Unicode build.
2013-08-05 20:36:51 +00:00
michi_cc
6be5000eda
(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
d8fa0c7dd8
(svn r25672) -Fix: [Win32] Handle Unicode characters from outside the BMP correctly.
2013-08-05 20:36:40 +00:00
michi_cc
be50bc410f
(svn r25671) -Codechange: Pass character and key code separately to the keyboard handler.
2013-08-05 20:36:36 +00:00
michi_cc
4b9fdb9ec4
(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
21120665e3
(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
734a0d788c
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
2013-08-05 20:36:13 +00:00
michi_cc
84c4f8bbdc
(svn r25664) -Add [FS#4847]: [OSX] Bootstrap downloading of a baseset. (Matthieu)
2013-08-05 20:36:10 +00:00
michi_cc
f673278cbf
(svn r25660) -Fix: [OSX] The name's OpenTTD, not OTTD.
2013-08-05 20:35:56 +00:00
michi_cc
c5606136d2
(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
b1d2d5d1e5
(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
75259f1659
(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
32d0a2322f
(svn r25656) -Cleanup: Coding style.
2013-08-05 20:35:42 +00:00
michi_cc
a141a5dcad
(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
bcd6836291
(svn r25550) -Fix [FS#5571]: [Windows] Race condition between two drawing threads could crash OpenTTD
2013-07-01 19:48:52 +00:00
rubidium
76bcf534e2
(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
40c8184469
(svn r25318) -Fix: [SDL, FS#5580] Keyboard input stopped working after fullscreen toggle
2013-06-04 06:36:59 +00:00
rubidium
19a59eeef0
(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
862b4ad9b9
(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
f8831481ee
(svn r25002) -Doc: [SDL] Fix typo in comment.
2013-02-15 11:01:43 +00:00
matthijs
eac0f6eab0
(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
b46eea3505
(svn r24992) -Codechange: [SDL] Make CreateMainSurface and PollEvent private methods instead of static functions.
2013-02-14 11:06:06 +00:00
planetmaker
f00d9976f9
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
rubidium
b89df11932
(svn r24877) -Fix: some whitespace "errors"
2013-01-01 10:52:32 +00:00
michi_cc
ce64eca677
(svn r24781) -Fix (r24762): [Win32] MinGW compiler warning.
2012-12-03 22:08:00 +00:00
michi_cc
b46358312f
(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
8944dcbef2
(svn r24524) -Fix [FS#5296]: fix some compile problems in mac-only code (__ln__)
2012-09-13 18:42:33 +00:00
glx
ad200403c1
(svn r24394) -Fix (r24188): changing resolution didn't resize the window
2012-07-10 17:47:03 +00:00
truebrain
e57b1daa5c
(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
fa8f1f3ac7
(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
a77c72936d
(svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter
2012-02-23 21:10:08 +00:00
rubidium
604a1a4558
(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
74dfcba3be
(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
3be8540055
(svn r23909) -Fix: [SDL] Fix keyboard-related segfault when compiling against SDL 1.3.
2012-02-07 10:12:11 +00:00
rubidium
ed85ffb660
(svn r23891) -Fix-ish: compile failures with SDL 1.3
2012-02-04 16:24:25 +00:00
michi_cc
cc9e7f07dc
(svn r23749) -Fix: [Win32] Work around a possible deadlock when initialising threaded drawing.
2012-01-04 00:45:36 +00:00
rubidium
16ccb8f246
(svn r23527) -Codechange: unify colo(u)r as far as it goes
2011-12-15 22:02:00 +00:00
rubidium
462d92a125
(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
4159371e3e
(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
daba7e588a
(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
2c07e9cae8
(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
e6c46d4cf4
(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
a531ec1899
(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
67d90f1174
(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
ee6e8ea36b
(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
aa8587b335
(svn r23003) -Fix (r22999): Missing semicolon.
2011-10-04 22:12:43 +00:00
michi_cc
d3e32121c9
(svn r22999) -Codechange: Allow changing the blitter during the running game.
2011-10-04 21:35:40 +00:00
planetmaker
b7545e9e9e
(svn r22943) -Fix: [OSX] Typo broke debug compilation
2011-09-19 05:37:11 +00:00
planetmaker
40d7b3c861
(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
696e4eec2d
(svn r22910) -Fix [FS#4617]: icon would (almost) never be shown for SDL builds
2011-09-09 09:13:18 +00:00
planetmaker
011a73f024
(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
69eae55fb1
(svn r22894) -Doc: Some sprinkles of doxygen for the cocoa video driver
2011-09-05 05:31:29 +00:00
planetmaker
350812a90a
(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
9aa6000b15
(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
1ca06f2aae
(svn r22788) -Codechange: move modal progress related functions and variables to progress.cpp/h
2011-08-21 12:48:46 +00:00
rubidium
727580274b
(svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress
2011-08-21 12:46:46 +00:00
planetmaker
52c09189b7
(svn r22678) -Doc: More doxygen sprinkles in MacOSX code and cocoa video driver
2011-07-21 16:13:34 +00:00
alberth
cae2d84af3
(svn r22512) -Add: Save heightmap.
2011-05-28 13:55:34 +00:00
rubidium
eb2197f4c8
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
rubidium
87272273b5
(svn r22405) -Document: some more "random-ish" tidbits
2011-05-01 19:14:12 +00:00
rubidium
f642d28ea8
(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
9222a30173
(svn r22145) -Codechange: Do explicit test for non-bool values.
2011-02-25 22:04:38 +00:00
alberth
a14f4eb271
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
2011-02-25 21:53:43 +00:00
glx
20f94c965f
(svn r22081) -Fix [FS#4489]: if fullscreen fails with current resolution, use desktop resolution
2011-02-14 20:16:36 +00:00
rubidium
8183922813
(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
6ac1a139d0
(svn r21684) -Fix [FS#4360] (r21573): Silence some compile warnings
2011-01-01 08:23:46 +00:00
planetmaker
652deb7ee6
(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
6c595362de
(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
9b999923e5
(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
3e42e97681
(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
5a901ed82e
(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
8dfefaf1ec
(svn r21573) -Codechange: [OSX] Unify the naming of variables among different screen drivers a bit
2010-12-21 15:53:20 +00:00
planetmaker
f11e0ae053
(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
97e62615e6
(svn r21537) -Cleanup: Add a few sprinkles of coding style
2010-12-18 21:54:09 +00:00
planetmaker
ab413313ef
(svn r21522) -Fix: [OSX] Silence a warning when compiling without quartz and quickdraw
2010-12-15 01:30:13 +00:00
rubidium
c780091c26
(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
4c9d47ae60
(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
1baf6fbae8
(svn r21245) -Fix (r21200): [OSX] Make gcc 4.2 happy
2010-11-18 20:45:27 +00:00
planetmaker
e52ee78d94
(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
bbc6f54822
(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
040571ea3d
(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
d9c5a3e344
(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
65d4fc990e
(svn r20808) -Add [FS#4110]: [OSX] support for input using dead keys (Zydeco)
2010-09-15 21:19:41 +00:00
rubidium
3d2908253e
(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
b3cae21722
(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
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
terkhen
c92b2e9d3c
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
2010-07-29 14:26:28 +00:00
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
2ab8035604
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
2010-07-19 16:21:49 +00:00
rubidium
8894ae2ccb
(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
78b01873c1
(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
80da20d725
(svn r19965) -Cleanup: Use size of buffer, not magic number.
2010-06-12 10:55:13 +00:00