Age | Commit message (Collapse) | Author |
|
MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
|
|
for SHGetFolderPath the
application failed to run. Now test if the function exists and if not try a different
approach using our own OTTDSHGetFolderPath wrapper.
|
|
ala Fontconfig. Pretty
messy if you ask me, but this is what you get when MS hides the font API in the deepest
depths... thanks Rubidium for testing.
|
|
also accept conversions
into a predefined buffer insted of using the static (global) buffer. This is useful if
the converted value will be used later on; no need to copy it somewhere else to save it.
-CodeChange: [win32] Added appropiate macros WIDE_TO_MB_BUFFER, MB_TO_WIDE_BUFFER next to
existing WIDE_TO_MB and MB_TO_WIDE that only do work when UNICODE is defined, saves
#ifdefs all over the place
|
|
OS's using UNICODE
API exclusively.
|
|
functions that don't change their pointer parameters
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
|
|
|
|
|
|
#includes) and fix some warnings
|