Ykkrosh
9fa5af5fbf
Avoid crash when loading texture named "".
...
Report texture-loading errors.
This was SVN commit r8006.
2010-08-19 21:58:27 +00:00
Ykkrosh
df4e9a05c2
Fix build error on 32-bit Linux
...
This was SVN commit r7851.
2010-08-05 14:24:32 +00:00
Ykkrosh
cc8ad0f3c0
Fix line endings
...
This was SVN commit r7850.
2010-08-05 14:22:56 +00:00
Ykkrosh
fdb8be2fd5
Fix warning
...
This was SVN commit r7836.
2010-08-01 17:36:39 +00:00
janwas
e20f93ffdc
add proper OGG support, a near-total rewrite of a patch by Kyniker/Heron. not yet integrated into snd_mgr. also remove the no longer used CMusicPlayer and CPlayList.
...
This was SVN commit r7834.
2010-08-01 10:52:12 +00:00
Ykkrosh
1706363bab
Fix #423 (Switch from CppDoc to Doxygen), based on patch from anr.
...
Also delete some unused declarations, and rename is_playing to
snd_is_playing.
This was SVN commit r7813.
2010-07-29 15:55:41 +00:00
WhiteTreePaladin
41e1652e10
Using .png for session cursors
...
Added .png version of cursors
Added gather treasure cursor
This was SVN commit r7779.
2010-07-21 20:35:26 +00:00
janwas
98770fa4cc
# fix race conditions in ModuleInit and related cleanup.
...
CAS: uintptr_t->intptr_t to allow use of both cpu_CAS and cpu_AtomicAdd
topology: remove non-thread safe caching, expose ApicIds, use ModuleInit
x86_x64: use ModuleInit instead of unsafe static flags; zero-init regs
instead of just setting ecx
ModuleInitState now holds the LibError returned by the init callback (so
that the second init doesn't appear to succeed despite the first
failing)
wnuma: cleanup, add ACPI SLIT relative distance detection
This was SVN commit r7741.
2010-07-12 12:57:58 +00:00
Ykkrosh
8c1deecdbe
C++0x compatibility (fix narrowing conversions in initialisers; avoid ambiguity with std::next)
...
This was SVN commit r7739.
2010-07-11 22:40:17 +00:00
Ykkrosh
8d9fa66b67
Fix warning
...
This was SVN commit r7710.
2010-07-07 10:39:12 +00:00
Ykkrosh
b5c5467c88
Fix errors when compiling with _GLIBCXX_PROFILE
...
This was SVN commit r7699.
2010-07-05 19:13:22 +00:00
janwas
6d3930ace7
fix: don't generate spurious resize events in fullscreen mode when interacting with another topmost window
...
fix: don't store a PIVFS reference in HDATA, because those aren't freed
due to caching (fixes memory leak)
This was SVN commit r7687.
2010-07-04 11:12:50 +00:00
janwas
d2cf6ceb88
less global variables: make most uses of g_VFS explicit (required for another app that has two VFSes), g_yres is no longer required by cursor module
...
This was SVN commit r7686.
2010-07-04 10:15:53 +00:00
Ykkrosh
65cf204423
Display warnings and errors on screen for a short time ( fixes #119 ).
...
Add warn(), error() functions for simulation scripts.
This was SVN commit r7600.
2010-05-31 22:44:59 +00:00
Ykkrosh
7dca91f26b
# Various changes to the text rendering system.
...
Rewrite font builder tool to be much simpler and to support more text
effects.
Change GUI to use new set of fonts.
Switch font textures from TGA to PNG so they're easier for the font
builder to create.
Support RGBA font textures (for e.g. stroked text).
Greatly improve text rendering performance by using vertex arrays.
Fix rendering code leaving vertex buffers bound.
Add 'clip' property to GUI text objects, to disable clipping when
rendering.
Delete part of unused console function registration system.
This was SVN commit r7595.
2010-05-30 13:42:56 +00:00
janwas
e2fd560983
work around sound-related deadlock and assert on exit (due to OS X's broken OpenAL implementation)
...
refs #297
This was SVN commit r7516.
2010-05-08 19:11:28 +00:00
Ykkrosh
4981af4a57
OS X build/warning/test fixes
...
This was SVN commit r7512.
2010-05-07 20:55:23 +00:00
Ykkrosh
49eb176b25
Fix MSVC compiler warnings (replace most M_PI with (float)M_PI)
...
This was SVN commit r7404.
2010-03-26 19:04:40 +00:00
Ykkrosh
00e18e4ea8
Report S3TC non-support with an in-game GUI message box.
...
Fixes #313 .
This was SVN commit r7390.
2010-03-23 22:45:07 +00:00
Ykkrosh
58e79bfdbe
Force fancywater off if fragment shader extensions are not supported. See #270
...
This was SVN commit r7385.
2010-03-21 14:18:15 +00:00
janwas
bdfe28766a
osx fix: TIMER_ADD_CLIENT identifier conflicted with the name of an existing symbol (namely the OpenGL function whose time was being measured)
...
This was SVN commit r7374.
2010-03-20 17:46:45 +00:00
olsner
5bb14c7a59
Misc. unity fixes (missing includes, undefs, and other things that could be considered generic cleanup)
...
This was SVN commit r7328.
2010-02-18 00:06:50 +00:00
olsner
02253f82f0
Add/rename header guards
...
This was SVN commit r7326.
2010-02-17 23:21:49 +00:00
janwas
c2fd939898
license change to the more permissible Expat/MIT license for lib/ (see forum thread)
...
This was SVN commit r7316.
2010-02-08 16:23:39 +00:00
Ykkrosh
0e8698d652
Build fixes
...
This was SVN commit r7288.
2010-01-27 19:05:02 +00:00
janwas
33882ab698
wdll_ver: safely deal with DLLs that don't have version information (OpenAL32's soft_oal doesn't, and we've renamed it to OpenAL32 to override the Creative implementation, so the system detect code tries to retrieve its version)
...
snd_mgr: cleanup, initialize velocity
This was SVN commit r7280.
2010-01-22 14:22:09 +00:00
Ykkrosh
d0e741b261
Add shader compilation timers
...
This was SVN commit r7254.
2010-01-07 18:48:11 +00:00
janwas
03726c0b54
ICC build fixes
...
warning fixes
get rid of SAFE_WCSCPY and SAFE_STRCPY
This was SVN commit r7239.
2010-01-01 15:33:07 +00:00
janwas
5e0ae351db
fix further 64-bit trouble
...
This was SVN commit r7237.
2009-12-30 20:47:55 +00:00
janwas
b443627571
64-bit build fix
...
This was SVN commit r7236.
2009-12-30 20:38:40 +00:00
janwas
c0662bcfd0
fix: OpenAL source suballocator wasn't thread-safe nor capable of detecting double-frees
...
(see http://www.wildfiregames.com/forum/index.php?showtopic=12774&hl= )
This was SVN commit r7235.
2009-12-30 16:42:47 +00:00
janwas
7a6109f474
debug_SkipNextError changed to debug_SkipErrors (allow skipping multiple instances of the same error code until the next debug_StopSkippingErrors, which returns the number that were skipped)
...
also:
- add listing of error codes to avoid collisions
- cpu: add cpu_MemoryBarrier
- wchar: warn whenever a character is replaced/invalid bytes are
encountered
This was SVN commit r7189.
2009-11-10 15:48:41 +00:00
janwas
f432d9d18b
fix dehydra warnings (some of which were dangerous pass-user-string-as-format-string vulnerabilities)
...
This was SVN commit r7177.
2009-11-07 09:32:19 +00:00
janwas
9662666403
more string drudgery
...
- sprintf, snprintf -> sprintf_s (ensures 0-termination of result)
- use %s instead of %hs with sprintf_s to avoid GCC warnings
- convert h_mgr's to_string to unicode
This was SVN commit r7170.
2009-11-06 10:59:10 +00:00
janwas
4c44602ea0
add support for hotloading (i.e. reacting to directory change notifications and reloading the affected files)
...
also clean up VFS a bit.
ogl_tex now tolerates deleting/renaming texture files that are in use
(except for a warning message which can be 'continue'd)
This was SVN commit r7166.
2009-11-04 22:35:54 +00:00
janwas
77d2c67ada
misc. string fixes
...
convert remaining %s to %hs or %ls
use WPRINTF_ARGS on unicode printf functions
fix: __func__ can't be widened via preprocessor (-> revert to char*)
convert remaining external_[directory|file_string to string()
Util: don't mix fwprintf and fprintf
Formation: fix dangling pointer (storing result of c_str())
This was SVN commit r7164.
2009-11-04 15:29:28 +00:00
janwas
da3030cfe6
more unicode/string cleanup:
...
- swprintf -> swprintf_s
- use secure_crt's _wfopen_s instead of conversion+fopen
- centralize all MBS <-> WCS conversion in new wchar.cpp (requires
workspace rebuild)
- remove no longer needed os_path
- remove unnecessary fs::wpath / VfsPath constructor casts
- fixed buffer size parameters -> ARRAY_SIZE
This was SVN commit r7162.
2009-11-03 22:27:25 +00:00
janwas
8a52113e60
huge cleanup and conversion of most string handling (especially paths) to unicode
...
please note: format strings must be %hs for char* arguments and %ls for
wchar_t*
This was SVN commit r7161.
2009-11-03 21:46:35 +00:00
Ykkrosh
e257bef5da
Fix even more 64-bit warnings
...
This was SVN commit r7152.
2009-10-05 16:15:51 +00:00
janwas
b5c7e3edac
fix: output distance information in case of error to aid in diagnosis
...
This was SVN commit r7133.
2009-09-07 21:06:44 +00:00
Ykkrosh
cd6a926c14
Fix #293 (Lots of printf format string errors), based on patch from Cygal
...
This was SVN commit r7113.
2009-08-14 18:42:39 +00:00
janwas
92786e368b
use a simple linear distance model for attenuation
...
This was SVN commit r7112.
2009-08-12 21:28:10 +00:00
janwas
4c4fec0644
# fix sound error on Linux
...
Linux OpenALsoft implementations weren't resetting source state
correctly when stopping/clearing buffer queue, leading to errors when
the source was reused. workaround: use 'rewind' to ensure the buffer
state is updated.
closes #297 (please reopen if the problem persists)
This was SVN commit r7111.
2009-08-12 20:27:37 +00:00
janwas
119eb08b47
fix potential bug when reusing OpenAL sources (rollover wasn't always set)
...
This was SVN commit r7108.
2009-08-11 20:26:50 +00:00
janwas
7bbb4d4777
add more detailed OpenAL error reporting (the line number of AL_CHECK invocation, to allow exact determination of the faulting function)
...
This was SVN commit r7094.
2009-08-08 16:12:02 +00:00
Ykkrosh
5c8861adf4
Remove redundant -L linker arguments on non-Windows.
...
Fix some compiler warnings.
Fix missing non-PCH headers.
This was SVN commit r7083.
2009-08-07 17:22:05 +00:00
Ykkrosh
4a4269824b
Add more vararg error-checking annotation
...
This was SVN commit r7073.
2009-08-04 16:08:41 +00:00
Ykkrosh
d83945e1e7
Annotate functions that have printf-style format strings, for compile-time type checking (see #293 )
...
This was SVN commit r7072.
2009-08-04 13:31:41 +00:00
janwas
05d73edd2f
# hopefully fix sound error when exiting
...
as per http://www.wildfiregames.com/forum/index.php?showtopic=12483
thanks to Ykkrosh and oliver!
This was SVN commit r7029.
2009-07-21 18:13:01 +00:00
janwas
663fcfeb9a
# macosx compile fix
...
(OpenAL ALC string definition differs on Windows vs OSX)
This was SVN commit r7000.
2009-07-16 16:48:06 +00:00