summaryrefslogtreecommitdiff
path: root/win32.c
AgeCommit message (Collapse)Author
2005-07-27(svn r2729) Fix #includetron
2005-07-27(svn r2728) -Fix/Feature: Change the driver probing algorithmtron
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds. This should fix problems on machines with no sound card, where -s null had to be specified manually.
2005-07-27(svn r2727) Fix last commit, don't asktron
2005-07-27(svn r2726) Fix last committron
2005-07-27(svn r2725) Move MyShowCursor() back into win32.c, it fits better theretron
2005-07-25(svn r2710) Simplify dedicated server code a bit and don't compile it at ↵tron
all, if network support ist disabled
2005-07-25(svn r2704) Remove . from include path again, too much trouble. Also add ↵tron
some #ifdefs and #includes for the Windows build
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-24(svn r2699) Hopefully fix the compilation on Windows when SDL is not presenttron
2005-07-24(svn r2697) Make compiling with SDL on Windows work again (missing ↵tron
#includes) and fix some warnings
2005-07-23(svn r2691) Separate dedicated video driver and fix bemidi declarationstron
2005-07-23(svn r2688) MSVC and Watcom can't handle identical file names in different ↵tron
directories, oh my...
2005-07-23(svn r2686) Revert accidently commited changetron
2005-07-23(svn r2685) -Codechange: Split the music/sound/video drivers into separate ↵tron
files and move them into subfolders. This results in shorter and hopefully easier to maintain files. Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-22(svn r2672) Move saving/loading related declarations to saveload.htron
2005-07-21(svn r2670) Fix r2669tron
2005-07-20(svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵tron
of GB - should be a bit nicer to read
2005-07-20(svn r2649) Get rid of 2 warnings.ludde
2005-07-19(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* ↵ludde
instead of Dijkstra. - Benchmark shows that NTP is now around 10x faster than NPF. - Made IsTunnelTile macro to determine if a tile is a tunnel. - Added some useful debugging functions for making tiles red / getting accurate timestamps. - Remove old depot finding algorithm. - Disable warning for signed/unsigned comparisons.
2005-07-17(svn r2609) - Feature: remove extension from savegames/scenarios when ↵Darkvater
browsing the folders.
2005-07-17(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.ludde
2005-07-15(svn r2583) Move OS specific code out of misc.cludde
Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
2005-07-15(svn r2571) Add explicit type Pixel for ... Pixelstron
2005-07-14(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the ↵tron
win32 MIDI player to fail
2005-07-08(svn r2535) Tabstron
2005-06-30(svn r2501) Forgot to change part of the win32 code in r2497tron
2005-06-30(svn r2497) Use a struct array for palette entries instead of a flat byte arraytron
2005-06-20(svn r2463) - Fix: partly revert the strncat madness and update nightly ↵Darkvater
script (invisible) to correctly insert date.
2005-06-18(svn r2459) - Fix: windows title-bar did not correctly add date/revision for ↵Darkvater
nightly build
2005-06-06(svn r2417) - Fix: threads on morphos are apparently unexistent, so ↵Darkvater
implement stubs for them (tokai)
2005-06-04(svn r2405) Simplify a few '? true : false' and '? false : true', especially ↵tron
the latter is confusing
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-06-01(svn r2391) - Feature: saving games happen in a seperate thread so you no ↵Darkvater
longer will have to wait such a long time (especially handy on bigger maps and multiplayer games). The mouse also changes into the 'ZZZ' state :P. The thread on windows is currently given a little-bit-less-than-normal priority so it should not interfere that much with the gameplay; it will take a bit longer though. Upon the exit of the game any pending saves are waited upon. - Fix: fixed GetSavegameFormat() so that it takes the best compressor (highest), or a forced one added with the parameter - Open issues: 1. Don't attempt to load a game while saving is in progress, it will kick you back to the intro-screen with only the vast ocean to look at. 2. The server is disabled from threaded-saving, but might be enabled in the future. 3. Current implementation only allows 1 additional running thread. 4. Stupid global variables.....grrr Big thanks for TrueLight and the amazing memorypool :D
2005-05-30(svn r2387) - CodeChange: made the saveload code more readable and also ↵Darkvater
removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-16(svn r2334) - Fix (regression): moved togglefullscreen into the ↵Darkvater
video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
2005-05-14(svn r2310) - Fix: Game would crash if you full-screened with the ↵Darkvater
'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug. - Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list. - Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-04-13(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the ↵darkvater
root-directory anymore; win32 only (mgasterix)
2005-04-05(svn r2153) - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window ↵darkvater
win32-only (glx)
2005-03-28(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch ↵darkvater
[1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. Tron + glx (and me)
2005-03-27(svn r2086) - Codechange: Two indentation fixes coming from Loic Guilloux' ↵pasky
patch 1171208.
2005-03-27(svn r2084) Set the name for drive itemstron
2005-03-26(svn r2076) Set the name for the parent directory to ".."tron
2005-03-24(svn r2052) - Fix Regression: ALT+F4 once again shuts down openttd in ↵darkvater
windows and F10, etc. is fixed.
2005-03-15(svn r2012) When making a savegame name, don't append the extension, if it ↵tron
is already there
2005-03-12(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend ↵tron
(sound.[ch])
2005-03-12(svn r1999) r1990 broke savegame deletion, fix that [1161729]tron
2005-03-11(svn r1990) Reduce the diff between the OS specific files with respect to ↵tron
file handling and fix some inconsitencies (I hope I didn't break the OS/2 part, couldn't test it, feedback is welcome)
2005-03-10(svn r1986) - Fix: free _config_file when shutting down openttd. Strange ↵Darkvater
that Valgrind didn't catch this, kudos to TrueLight - Feature (small): new command-line option -c <config_file>. You can have OpenTTD load alternative config files with this setup, handy for servers, or for saves from other players if you don't want to rename your own config. This will have to do until all game-related settings are saved ingame. Couldn't find the SF patch, so credits to the guy that wrote it.
2005-03-10(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when ↵tron
F10 is pressed