Commit Graph

4726 Commits (52220377998ed5adfcc30c5c208e402b4dbd7dcf)

Author SHA1 Message Date
Giel van Schijndel 5222037799 Move the duplicated UTF-8 decoding code out of functions utf8_character_count and utf8_decode and into new function decode_utf8_char, which only decodes a single UTF-8 character sequence
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5897 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-30 13:24:27 +00:00
Giel van Schijndel b10871a0ab Add utf8.c to the win32 makefile system (which I forgot in r5895)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5896 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-30 12:38:26 +00:00
Giel van Schijndel d45e64bf55 Reintroduce utf8.{c,h} for encoding and decoding UTF-8 strings
This is meant to be used with betawidget

This is a revert of r2477 (which removed the UTF-8 module)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5895 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-30 12:34:46 +00:00
Freddie Witherden 0d58106de3 Make tool-tip events irrelevant for child widgets.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5894 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-30 10:36:52 +00:00
Freddie Witherden cef3ce8060 Improve the Doxygen documentation for clipboard.h; make the return value of widgetSetClipboardText on OS X mean something.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5893 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-30 10:02:28 +00:00
Freddie Witherden d5b0c12182 Slight refactoring of X11 clipboard code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5892 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 22:38:26 +00:00
Freddie Witherden e952b616c2 Remove a printline from the X11 clipboard code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5891 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 18:59:29 +00:00
Freddie Witherden 0f46539a45 Add clipboard support for X11.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5890 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 18:42:54 +00:00
Buginator c8beeaff83 Updating menu layout to a more logical order.
Closes bug #11801 & ticket #41

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5888 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 17:06:13 +00:00
Tim Baumgartner 56c578e28f -During the OS X build process, if a local build of Bison is built, it is now installed properly within the Bison source directory so that Bison's supporting files should always be found
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5887 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 04:42:18 +00:00
Tim Baumgartner 32b43be24f -Changed OS X downloaded version of QuesoGLC from tags/v0_7_1/quesoglc/ (r762) to branches/release-0.7/quesoglc/ (r835) to utilize QuesoGLC bug fixes (specifically the inline function linking error fix)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5886 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 02:38:57 +00:00
Tim Baumgartner 5cbce8754a Changes to the OS X build system
-Xcode project now only downloads and build Bison if the system version is not a compatible version of Bison (and if the Bison binary in macosx/external/bison/ does not exist)
-Added a Bison wrapper that calls the version of Bison in macosx/external/bison/ if it exists, otherwise the system Bison executable is used



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5885 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-29 02:10:29 +00:00
Giel van Schijndel 37c6aa9fd6 Make sure to clean up the sound streams as well in function sound_ShutdownLibrary()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5884 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-28 20:12:47 +00:00
Per Inge Mathisen ceb4e23eda patch #1096: Improve speed of fireOnLocation, and use it to fix AI bug
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5883 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-28 19:55:09 +00:00
Giel van Schijndel 99605c5982 Don't use a forward declaration to declare pointers to BASE_OBJECT as that somehow goes wrong (I'm guessing related to WZ_DECL_MAY_ALIAS), instead #include basedef.h in baseobject.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-28 19:26:06 +00:00
Freddie Witherden a06bb014df Add partially-finished SDL wrapper code to betawidfet.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5881 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-28 15:34:21 +00:00
Ari Johnson d5b341334d More changes from #ifdef __APPLE__ to #if defined(WZ_OS_MAC)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5880 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-27 15:24:21 +00:00
Giel van Schijndel 5bc5e1a873 Replace #ifdef __APPLE__ (from r5878) with #if defined(WZ_OS_MAC)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5879 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-27 14:21:39 +00:00
Tim Baumgartner c6ddf919c1 This commit fixes OS X build errors.
-Fixed Xcode project Release configuration framework and library search paths to point to their respective Release directories (rather than to the Debug directories)
-Added baseobject.h and baseobject.c to the Xcode project file
-Added preprocessor conditional to multiint.c so that the proper GLC header is included on OS X systems


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5878 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-27 07:25:48 +00:00
Ari Johnson 680cbae43c Committed patch from mailing list message <4894F4FB.3050205@gmail.com>
due to Tim Baumgartner.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5877 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-26 15:27:40 +00:00
Freddie Witherden 94bbbf4250 Re-organise betawidget as proposed on the mailing list; add paste support for Win32 (needs testing).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5876 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-26 11:01:17 +00:00
Freddie Witherden 2ea48df684 Fix some more typos in widget.h and correct the indentation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5875 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 20:37:41 +00:00
Freddie Witherden 9e605318d9 Add font.[ch] which abstract Cairo's internal font setting routines.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5874 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 18:25:13 +00:00
Freddie Witherden 125dc19e04 Fix a typo in clipboard.h.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5873 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 18:19:38 +00:00
Freddie Witherden c699aca070 Include <stdbool.h> in clipboard.h as opposed to clipboardOSX.m; fixing a potential compiler error.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5872 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 18:04:21 +00:00
Freddie Witherden 55be99a19d Add sync-to-vblank support to Warzone; this closes ticket #38.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5871 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 18:01:49 +00:00
Freddie Witherden 4266827565 Add copy/paste (clipboard) interface to betawidget, along with an OS X implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5870 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 17:30:09 +00:00
Freddie Witherden e48b37f6c0 Add tool-tip support to betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5869 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-25 15:56:58 +00:00
Freddie Witherden cc94bc2818 Allow for event handlers to have separate (optional) destructors.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5868 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 16:58:27 +00:00
Giel van Schijndel fd0084951e Prevent some infinite recursion
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5867 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 16:13:20 +00:00
Giel van Schijndel 360dc86ef4 * Make CHECK_OBJECT, CHECK_PROJECTILE and CHECK_STRUCTURE macros that redirect to a function
* Add two new files: src/baseobject.[ch]
 * Have CHECK_OBJECT call any of CHECK_DROID, CHECK_PROJECTILE or CHECK_STRUCTURE depending on the object's type
 * Change CHECK_DROID and checkDroid to use the AT_MACRO to get the current filename and line number
 * Change checkDroid to use ASSERT_HELPER to provide the source of the assertion

NOTE: The autotools, Code::Blocks, win32 Makefiles and MSVC buildsystems are updated, Xcode will still require an update

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5866 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 15:56:00 +00:00
Giel van Schijndel 173ee31214 * Split ASSERT out into ASSERT_HELPER:
* ASSERT_HELPER can be used by debug functions that wish to alter the location information attached and printed with ASSERTs
 * Add some missing semi-colons (the previous ASSERT macro had a terminating semi-colon)
 * Change an ASSERT that checks calloc's return value into an if() block (we can also run out of memory on non-debug builds...)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5865 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 15:42:59 +00:00
Giel van Schijndel 213070da95 Make function packageCheck const correct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5863 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 14:29:14 +00:00
Giel van Schijndel 50519cff38 * Add some Doxygen comments
* Improve some comments
 * Separate parameters with both a comma and a space, i.e.: ", "
 * Make ForceDroidSync take its psDroid parameter const
 * Add some whitespace to enhance readability (as readability is a very important part of maintainability)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5862 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 13:42:17 +00:00
Giel van Schijndel f957004f2c * Improve some comments
* Fix some typos
 * Separate parameters with both a comma and a space, i.e.: ", "
 * Turn a debug(LOG_ERROR for a condition that should never happen into an ASSERT


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5861 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 12:41:59 +00:00
Giel van Schijndel 19b72f1ce5 * Use alGetError() instead of sound_GetError() to clear error codes (the latter will also dump a debug message to LOG_SOUND)
* Remove some redundant debug(LOG_NEVER calls (they're preceded by a sound_GetError() call which will already dump that info)
 * Improve some comments
 * Log sound errors to LOG_SOUND, not to LOG_NEVER
 * In sound_DestroyStream make sure to bail out when we fail to retrieve the buffer count (as that could cause memory over-allocation)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5860 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 12:41:10 +00:00
Giel van Schijndel dad708f73d Update the French translation: add 83 new translated strings
Patch #1098 by Cassarin-Grand Arthur <zoloom>


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5858 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-24 11:10:00 +00:00
Buginator 82966293ad Fixes a openAL case where we didn't check if a openAL call failed or not.
(NOTE, this is really a temp fix, so it don't crash/cause more openAL errors. The sound code need a rewrite to correctly fix this problem)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5853 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-23 19:44:00 +00:00
Buginator 0ab4d2b32c Fixes r5507 (trunk) & r5568 (branch) and closes bug # 12219 , and report of same bug in forms.
Issue was, orders were not given to pre positioned droid units.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5849 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-23 18:35:59 +00:00
Freddie Witherden 30712505f1 Add the ability to check if an id is a valid event handler or not.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5844 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-21 16:19:51 +00:00
Freddie Witherden 45ba680eb6 Convert a warning in betawidget to an assert; ensure that when adding a child that it has no parent.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5843 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-21 13:46:12 +00:00
Buginator 81395a05b3 Prevents a division by 0 error reported in the forums.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5842 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-21 03:16:31 +00:00
Per Inge Mathisen cf7c584399 patch #1095: Make font configurable
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5841 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-20 21:23:58 +00:00
Freddie Witherden 34e4246bd4 Fix a couple of typos and a compiler warning in betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5840 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-20 13:05:44 +00:00
Buginator e8f4edbb56 Fixes bug #12053
After a SP game has ended, needed to reset the search path back to mod_multiplay. 

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5839 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-19 05:07:06 +00:00
Buginator 807549b8e2 Fixes bug #12116
Cyborg transports now can load/unload correctly.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5838 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-18 03:28:03 +00:00
Freddie Witherden d3881835d0 Make the id of a widget a const char*.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5837 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-17 20:51:59 +00:00
Per Inge Mathisen 1f806cbb2e Add ugly workaround for buggy maps created by the map editor, where the number of terrain
are apparently larger than the maximum. Reported by gronlund on IRC.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5836 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-17 20:51:57 +00:00
Buginator ebecb854b1 Add a fallback for the map preview when drivers report they have FBO, but we detect a FBO error.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5835 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-17 18:35:22 +00:00
Freddie Witherden 077cfee020 Add widgetGetCurrentlyMousedOver to return the widget that currently has the mouse over it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5834 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-17 18:22:38 +00:00