techs are not just available for research, they are researched and their effects apply in full.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2326 4a71c877-e1ca-e34f-864e-861f7616d084
Makes doubleclick state a condition for mousePressed, so that widget
can recognize the 'down' state in a double click state correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2325 4a71c877-e1ca-e34f-864e-861f7616d084
that we have sufficient data in buffer to read next colour first.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2324 4a71c877-e1ca-e34f-864e-861f7616d084
* add some comments
* actually parse newline characters (ASCII_NEWLINE to be precise which is defined as '@' right now, we might want to change this)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2315 4a71c877-e1ca-e34f-864e-861f7616d084
* remove "BOOL AddLeadingSpaces" and all code relying on it to be true, since it never would be true
* turn a while-loop into a for-loop (reduces duplicated code slightly, and increases its readability)
* merge two nested if's: if (a) { if (b); } => if (a && b)
NOTE: there should be no behavioural changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2314 4a71c877-e1ca-e34f-864e-861f7616d084
* remove character wrapping code from pie_DrawText (word wrapping code already exists in the only function that ever calls pie_DrawText, so why would we need character wrapping?)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2312 4a71c877-e1ca-e34f-864e-861f7616d084
This is because I got fed up by mixed indentation style (even on the same line!!), and some dozen of different styles sometimes even in the same function (and I don't want to waste my time on style)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2311 4a71c877-e1ca-e34f-864e-861f7616d084
* fix error in code cutting off trailing spaces where we would cut of everything until a space instead! (oops)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2310 4a71c877-e1ca-e34f-864e-861f7616d084
* put curly braces on a line of their own
* general clean up (e.g. moving some variables in a more local scope, giving some more sensible names, etc.)
NOTE: there should be _no_ behavioural changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2309 4a71c877-e1ca-e34f-864e-861f7616d084
since they old ones we had had scaling artifacts on the edges, and they have been
split up into one file per texture. We now also use custom mipmaps down to 16x16
size for improved scaling and interpolation. Texture page (atlas) assembly is now
done with OpenGL rather than by shuffling pixels directly in memory.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2300 4a71c877-e1ca-e34f-864e-861f7616d084
* Fix macro ASSERT_START_OCTET (I used a logical and there instead of logical or)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2296 4a71c877-e1ca-e34f-864e-861f7616d084
The radar files use HTML-like hex values for colours (ie FFFFFF is clear white).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2295 4a71c877-e1ca-e34f-864e-861f7616d084
* Don't use a hundred and two different methods of determining the end of nul terminated string
* Use pointers into the string rather than integers as "iterators"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2291 4a71c877-e1ca-e34f-864e-861f7616d084
* function was declared unsigned int, but defined as int; now it's unsigned int in both
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2289 4a71c877-e1ca-e34f-864e-861f7616d084
* Define iV_GetTextWidth in terms of iV_GetCharWidth now (rather than copy&paste implementations)
* iV_GetTextWidth now also returns an unsigned int
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2287 4a71c877-e1ca-e34f-864e-861f7616d084
* This way it should be easy to change the type of utf_32_char if ever needed (currently it is uint_fast32_t)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2284 4a71c877-e1ca-e34f-864e-861f7616d084
* Add files lib/framework/utf8.[ch] to autoconf/automake, raw makefiles, Code::Blocks and MSVC
NOTE: this may require updating of some additionaly buildsystems (e.g. OSX)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2281 4a71c877-e1ca-e34f-864e-861f7616d084