rubidium
da4b1a7718
(svn r7569) -Fix (r7565): cocoa files were (somehow) forgotten.
...
-Change: messages about failures is cocoa should be debug level 0 and show what went wrong. " failed with message X" isn't really descriptive.
-Change: remove unneeded level 1 debug messages for entering some cocoa functions.
18 years ago
Darkvater
073e0eb3c9
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
...
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
18 years ago
Darkvater
b58c90a075
(svn r7562) -Fix (r7060, 5874): It seems windows doesn't have the same functionality for CreateWindow when starting a program from the console or from the GUI. Because of this starting OpenTTD from the desktop wouldn't maximize the window, even if the config file said so. So work around this...
18 years ago
rubidium
5fffa66b71
(svn r7332) -Fix: segmentation fault, discovered by ln-, in the SDL video driver when one goes to fullscreen and there are no suitable resolutions.
18 years ago
Darkvater
b23191ddae
(svn r7283) -Revert (r1932): Remove scancode 41 for linux console because it is 49. If some linux
...
flavour does use 41, use proper #ifdef guards around it, because right now 'f' also
toggles console.
18 years ago
Darkvater
dcbbda0cb9
(svn r7279) -Codechange: [win32] Add Windows95/98 support by using MSLU. Only workaround is that the
...
wide version of EnumDisplaySettings crashes on win95 no matter what, so use ANSI version.
NOTE: MSLU support is only added to VS2003 project file because VS2005 compiles won't
even run on Windows95.
18 years ago
Darkvater
d8d210056d
(svn r7278) -Codechange: [win32] Add UNICODE support so it should compile on OS's using UNICODE
...
API exclusively.
18 years ago
Darkvater
590e90cd9e
(svn r7187) -CodeChange: [win32] Limit success of ToUnicode/ToAscii to only one translated character as we only support one and remove TranslateMessage() call since we do not use it anyways (glx)
18 years ago
peter1138
1a4f1c8177
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
18 years ago
Darkvater
23d49e8231
(svn r7170) -Fix: [sdl] Non-working console toggle for some keyboard layouts. Do not OR the backquote
...
character but set it. Happened on Linux with Hungarian keyboard for example.
18 years ago
Darkvater
a353e354fd
(svn r7157) -Fix [FS#221, SF1168820]: Some mouse events possibly lost under high CPU load, handle
...
mouse input right away instead of waiting for GameLoop. (KUDr)
18 years ago
Darkvater
b713974cd8
(svn r7156) -Codechange: Remove obsolete variable, localize global variable, use GB and change logic
...
of the win32: TAB speeds up, but ALT+TAB doesn't code.
18 years ago
Darkvater
3a03b70319
(svn r7153) -Fix [FS#279]: Some keyboard events possibly lost under high CPU load, handle
...
keyboard input in place instead of global variables magic. (KUDr)
18 years ago
Darkvater
21dd00b299
(svn r7137) -Codechange: [win32] Use windows function in main loop to check if we have pressed ALT
...
(for ALT+TAB) instead of magic global _pressed_key from input-loop. (KUDr)
18 years ago
Darkvater
e496c5a37c
(svn r7062) -[win32] Codechange: Remove unneeded WM_MOUSEENTER event, and change mouse behaviour
...
a bit so that any specific windows inside (eg IME compositor) will have a cursor.
18 years ago
Darkvater
96f40aacb4
(svn r7061) -[win32] Feature: Remember the window size between restarts when quit in fullscreen mode.
18 years ago
Darkvater
20da2356a9
(svn r7060) -Fix (r5874): Restore of window maximized state not always working (Mart3p) . Remember
...
maximize state even between switching fullscreen/windowed mode.
18 years ago
Darkvater
ac2b6f39b1
(svn r7048) -Cleanup: DEBUG doesn't need a newline character, use DEBUG instead of printf and the
...
verb is build/built/built not build/*/build or build/*/builded.
18 years ago
peter1138
fde4bf4cca
(svn r6835) - Fix: Pressing ^D (EOF) at a dedicated console caused it to repeat the last command, instead of doing nothing.
18 years ago
Darkvater
dad5d5dd72
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
...
put it into player.h where it belongs (instead of map.h)
18 years ago
Darkvater
1436bbbc84
(svn r6766) -Codechange: Move _openttd_revision[] into the functions that use it instead of global
18 years ago
Darkvater
2d329463bf
(svn r6449) -Fix (Win32): The dedicated server could overwrite the keyboard input buffer
...
before it was handled by OpenTTD. Thanks to glx for noticing.
-While here, also do really minor coding style, and proper variable names.
18 years ago
rubidium
3d6f6813f2
(svn r6385) -Fix (r6380): one instance of QZ_AskQuit was left out in the conversion to HandleExitGameRequest.
18 years ago
rubidium
63687763e9
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
18 years ago
rubidium
a7cfb80c40
(svn r6380) -Codechange: unify all ways to quit OTTD.
...
This means that in the intro menu the 'Quit' button immediatelly quits
and the 'Quit' in the menu of the normal game and scenario editor
immediatelly quits when the 'autosave_on_exit' patch is turned on.
This is the same way as the OS/window manager initiated quits, like
alt-F4 and the 'x' in the (OS/window manager drawn) title bar of OTTD.
18 years ago
rubidium
03f963af58
(svn r6365) -Cleanup: remove IsGeneratingWorld calls that are either not called or have no effect.
18 years ago
tron
168e2b41e5
(svn r6294) -Cleanup: Add static
18 years ago
tron
3a98d0ee1d
(svn r6293) -Codechange: Simply use KMOD_CTRL instead of KMOD_LCTRL | KMOD_RCTRL, same for KMOD_SHIFT
18 years ago
tron
463ae887ea
(svn r6292) -Cleanup: Indentation, bracing, etc.
18 years ago
tron
17c101afe3
(svn r6286) Nobody cares for the return value of GetAvailableVideoMode(), therefore remove it
18 years ago
tron
c4fb78a708
(svn r6274) Clean up a bit
18 years ago
tron
5f3f9f499d
(svn r6262) Remove unused #define and function declaration
18 years ago
tron
ad076c8f9e
(svn r6260) Improve readability
18 years ago
rubidium
27cee58ab8
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
18 years ago
truelight
10b842bddc
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
18 years ago
Darkvater
e885129ab8
(svn r5874) -Feature [FS#234]: Remember the maximized state and restore on start. This also fixes a bug where a different resolution is chosen for a maximized window, but it retains the maximized flag. Only win32.
18 years ago
Darkvater
b1b0b26fc8
(svn r5872) - Feature: Add an icon to the SDL openttd executable.
18 years ago
bjarni
0f300a256c
(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
18 years ago
glx
11f4f6276f
(svn r4810) - Fix: removed warning about strict-alias (release build)
19 years ago
bjarni
7b39ac7e1d
(svn r4099) -Codechange: [OSX] the cocoa video driver speedup of around 1000% now also applies to Intel macs
19 years ago
Darkvater
74853e619a
(svn r4091) - Fix r4075. Do not "enter" please.
19 years ago
Darkvater
58722eb145
(svn r4090) - Followup for r4075. Some SDL implementations seem to have a different define for the SDL_ACTIVEEVENT SDL_APPMOUSEFOCUS which caused undrawing of the mouse only on losing input-focus. Correctly check for the event state
19 years ago
egladil
e38099dc29
(svn r4083) -Feature: [OSX] Ported r4075 (Undraw the mouse when it leaves the window and Draw it again when it enters).
19 years ago
bjarni
b8037ceb83
(svn r4082) -Fix: [OSX] FS#80 Crash when switching from windowed to fullscreen
...
this bug was introduced in rev 3670, but when undetected for a long time since it was resolution specific
this is likely the issue with x86 OSX in fullscreen, so I removed the really slow workaround and will clean it up once I get positive feedback from a x86 mac
this means that x86 OSX should now get the 1000% video driver speed boost as well
this fix is written by eglandil
19 years ago
Darkvater
ea1adebe31
(svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw it again when it enters. Added both for WIN32 and SDL. Since Win95 has troubles with TrackMouseEvent(), this function was just simply rewritten which was the easiest. Based on a patch by DmitryKo.
19 years ago
Darkvater
cbab3eded2
(svn r3999) - Fix: [win32] Change the order of DestroyWindow and ChangeDisplay. On some machines a sizechange messagequeue is handled before sending WM_DISPLAYCHANGE resulting in an improper resolution written to the configuration file when exiting from fullscreen. (Frostregen)
19 years ago
bjarni
31e1c4fe49
(svn r3971) reverted r3742 as those new errors were not the right way to handle those exceptions
19 years ago
bjarni
dcdfa496d5
(svn r3742) -codechange: [OSX] changed an assert to use the new error window and added another two to show if the screen buffer fails for some reason in cocoa driver (instead of just crashing)
19 years ago