Commit Graph

349 Commits

Author SHA1 Message Date
rubidium d89ff5b278 (svn r22798) -Change: jump immediately to the next mode after scanning (if needed) 2011-08-21 12:53:38 +00:00
rubidium 421053a694 (svn r22788) -Codechange: move modal progress related functions and variables to progress.cpp/h 2011-08-21 12:48:46 +00:00
rubidium a67cf6bae1 (svn r22787) -Codechange: rename genworld redraw constant 2011-08-21 12:47:45 +00:00
rubidium 7b7869fba7 (svn r22786) -Codechange: rename genworld mutices to model_progress mutices 2011-08-21 12:47:24 +00:00
rubidium 37415b9cf7 (svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress 2011-08-21 12:46:46 +00:00
frosch 1bc1a42ea5 (svn r22619) -Fix [FS#4662]: Consider the size of the vehicle sprite for the lineheight in the company GUI. This also makes the widget containing the sprite not skip drawing it, if the bounds of the widget are outside of the drawing area though the sprite actually needs drawing. 2011-07-02 14:37:03 +00:00
frosch 5e449b8fae (svn r22429) -Add: some constants for specific palette colours used in the GUI. 2011-05-06 21:13:29 +00:00
frosch 22286bd7b6 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 2011-05-04 17:45:16 +00:00
frosch bbcd2bab5d (svn r22419) -Change: Always use the DOS palette for drawing.
-Remove: the '-i' option for palette selection.
2011-05-04 17:12:37 +00:00
frosch b18211bb9d (svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine(). 2011-04-02 16:39:30 +00:00
alberth 31386c42a7 (svn r22145) -Codechange: Do explicit test for non-bool values. 2011-02-25 22:04:38 +00:00
rubidium 7efd7e19ed (svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m]. 2011-01-18 22:31:06 +00:00
rubidium 8a278f7711 (svn r21641) -Fix (r21639): ofcourse MSVC wants to have something to warn about 2010-12-26 06:52:38 +00:00
rubidium 9b2a54bfbf (svn r21640) -Change/Feature-ish: allow disabling the shading when drawing text 2010-12-25 20:02:04 +00:00
rubidium 1d21903eb4 (svn r21639) -Codechange: simplify setting the colour remap 2010-12-25 19:59:56 +00:00
rubidium 2c41b8ee97 (svn r21637) -Codechange: make it more clear that IS_PALETTE_COLOUR belongs to TextColour 2010-12-25 19:47:15 +00:00
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 2010-11-13 09:56:25 +00:00
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 2010-10-30 17:51:07 +00:00
rubidium b933819b0b (svn r21006) -Fix (r21004): don't print the text direction character when ICU isn't linked and thus doesn't remove them 2010-10-22 12:15:58 +00:00
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
frosch de973a4d60 (svn r20578) -Fix [FS#4051]: Draw bounding boxes using white instead of pure white, so they are recoloured to grey in coloured newspaper instead of blue. 2010-08-20 12:13:27 +00:00
frosch 01833039bd (svn r20384) -Fix: Update cursor dimensions when reloading grfs resp. changing base graphics, so the cursor does not glitch if it becomes bigger. 2010-08-05 19:23:19 +00:00
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
yexo d9bc65cdd8 (svn r20256) -Codechange: add a DrawStringMultiline variant that accepts const char* instead of StringID 2010-07-31 11:47:08 +00:00
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 2010-07-24 10:14:39 +00:00
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 2010-07-19 17:28:27 +00:00
rubidium e38f503ec0 (svn r20185) -Codechange: reduce the scope of _palette_animation_counter 2010-07-19 16:05:29 +00:00
alberth ddb0f1a614 (svn r20045) -Add: Allow SA_BOTTOM alignment in DrawStringMultiLine(). 2010-07-02 13:55:45 +00:00
alberth e3bb01a7c4 (svn r20044) -Codechange: Using number of lines rather than number of added lines simplifies code. 2010-07-02 13:54:05 +00:00
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 2010-07-02 13:53:05 +00:00
alberth 3d329beb1b (svn r20042) -Codechange: Add set methods to DrawStringParams. 2010-07-02 13:44:36 +00:00
alberth 829bd7d276 (svn r20026) -Codechange: No need to copy a formal parameter if the value is not needed further. 2010-06-27 13:33:14 +00:00
frosch 4b7afccd46 (svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine(). 2010-05-30 15:32:37 +00:00
rubidium 241dd9a9f5 (svn r19817) -Fix: MSVC compile warnings 2010-05-13 12:42:56 +00:00
rubidium 062dd0e24c (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
frosch f6f092b5ee (svn r19736) -Fix [FS#3802]: Spritepicker still failed for 32bpp-anim blitter. 2010-04-28 19:19:20 +00:00
frosch 7579079874 (svn r19732) -Fix [FS#3802]: Spritepicker failed for 32bpp blitters due to pitch measured in pixels rather than bytes. 2010-04-27 17:29:40 +00:00
frosch 7b30f34ecf (svn r19731) -Add: Spritepicker to sprite alignment tool. 2010-04-26 20:35:27 +00:00
frosch af7051178d (svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators. 2010-04-18 17:13:01 +00:00
frosch 2e90f7f8b9 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 2010-04-18 14:56:05 +00:00
glx fb207873c5 (svn r19067) -Fix [FS#3604]: remove Bidi control characters from the reordered text 2010-02-09 18:37:19 +00:00
rubidium f94c83a387 (svn r18872) -Codechange: introduce PaletteID and use it 2010-01-21 01:38:13 +00:00
rubidium cb820e3da3 (svn r18789) -Codechange: when we're not in a network game we don't even need to consider undrawing the chat messages 2010-01-12 00:10:38 +00:00
rubidium 90b7f0f3cb (svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot 2009-12-20 16:42:35 +00:00
frosch 169141433a (svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads. 2009-12-03 15:27:33 +00:00
frosch df0b347b45 (svn r18358) -Cleanup: More usage of EPV_CYCLES_(DARK|GLITTER)_WATER. 2009-12-01 18:12:17 +00:00
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
rubidium e772ec1c97 (svn r18228) -Fix: make string drawing big font aware, i.e. don't big characters flicker like a stroboscope. 2009-11-22 16:31:59 +00:00
rubidium e297f79b7f (svn r18143) -Codechange: allow stripping/ignoring of SETX(Y) during DrawString 2009-11-17 15:25:40 +00:00
peter1138 31f7df2cb0 (svn r18106) -Codechange: Draw string underline FONT_HEIGHT_NORMAL pixels down, not 10. 2009-11-15 19:18:19 +00:00
rubidium c2221885f4 (svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables 2009-11-09 09:59:35 +00:00
rubidium f315b11f1b (svn r17900) -Fix (r2497): ExtraPaletteValues' tables were all a factor 3 too big
-Codechange: replace some magic numbers related to palette animation with constants
2009-10-29 11:24:58 +00:00
rubidium 0501bd1325 (svn r17842) -Fix: DrawStringMultiLine would in some corner case, top = bottom + 1, draw the string 2009-10-22 14:24:11 +00:00
rubidium 3bb1f4217d (svn r17772) -Fix [FS#3264]: CJK languages don't have spaces, so for adding newlines (multi line strings) we need to (properly) handle the case when there are no spaces instead of truncating the string. 2009-10-13 20:19:34 +00:00
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 2009-09-19 09:51:14 +00:00
alberth a3ddb8a235 (svn r17391) -Codechange: Add string box calculation routine for multi-line strings. 2009-09-02 20:40:56 +00:00
rubidium 07d2af338e (svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc) 2009-09-01 10:07:22 +00:00
alberth 79a8da1c04 (svn r17306) -Fix: DrawStringMultiLine() computed available width and height wrongly. 2009-08-29 17:00:32 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
alberth 9efd32d13c (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. 2009-07-12 12:19:41 +00:00
alberth 9b070b5405 (svn r16677) -Codechange: Dimension width and height are unsigned. 2009-06-27 20:53:45 +00:00
alberth 996e5eea47 (svn r16672) -Codechange: Add functions to compute size of strings and sprites. 2009-06-27 11:45:05 +00:00
rubidium 6a3a304283 (svn r16599) -Fix [FS#2987] (r16584): reset the 'current' font size after drawing, this way we won't draw other strings too small; only caused problems when tiny/big text strings would use SETX. 2009-06-19 12:08:44 +00:00
rubidium 121a569125 (svn r16584) -Fix [FS#2965]: sometimes SETX/SETXY would lead to unexpected results for NewGRF texts.
Note: This readds support for centering strings with SETX, however the text part of the string will not be in the exact center, as the SETX offsets that.
Note: All means of aligning vehicle names behind wide sprites (SETX or lots of spaces) in the buy menu will cause the vehicle names to be misaligned in other places, like the new vehicle news message, exclusive use of vehicle message, detailed vehicle information or autoreplace.
2009-06-17 13:04:37 +00:00
rubidium e3c5bc8d2e (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 2009-05-26 15:46:24 +00:00
rubidium 168ae6f7e2 (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. 2009-05-24 21:09:00 +00:00
rubidium 5f81ba886c (svn r16297) -Codechange: silence more ICC warnings 2009-05-13 17:39:00 +00:00
rubidium 2664f2a2d9 (svn r16242) -Codechange: rework pausing
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +00:00
rubidium d685ca0619 (svn r16220) -Fix [FS#2862]: possible crashes when quiting OpenTTD or forcing resizes/redraws of the screen during map generation 2009-05-03 15:44:05 +00:00
rubidium c21062a728 (svn r16159) -Change [FS#2846]: warn when multiline strings are drawn with DrawString and not DrawStringMultiLine. 2009-04-26 14:40:23 +00:00
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 2009-04-26 10:45:07 +00:00
rubidium 171f98d523 (svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early 2009-04-04 10:59:14 +00:00
rubidium e8d76e79ee (svn r15849) -Codechange: provide easy access to the real height of the used fonts 2009-03-25 20:01:34 +00:00
rubidium 3e93f8adda (svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways) 2009-03-25 01:10:24 +00:00
rubidium 5c44bb6b63 (svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text. 2009-03-24 21:23:56 +00:00
rubidium c9e2e22bc0 (svn r15832) -Codechange: improve the aligning of right aligned/centered strings 2009-03-23 14:10:54 +00:00
rubidium e75e1e62cb (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 2009-03-22 14:55:49 +00:00
rubidium e74dc1e1d6 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
rubidium a07fae67c3 (svn r15800) -Codechange: make the engine gui use the new multiline API. 2009-03-22 00:15:00 +00:00
rubidium d837fc4d03 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 2009-03-21 23:45:34 +00:00
rubidium 676bf31e82 (svn r15796) -Codechange: unify multiline drawstrings 2009-03-21 23:23:06 +00:00
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 2009-03-21 22:46:17 +00:00
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 2009-03-21 22:22:00 +00:00
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 2009-03-21 22:00:00 +00:00
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 2009-03-21 20:12:12 +00:00
glx 9fcff01850 (svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows 2009-03-21 20:06:00 +00:00
rubidium 93fe44a3c5 (svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier. 2009-03-21 19:31:47 +00:00
rubidium a22559ff95 (svn r15779) -Codechange: unify (most) of the text drawing "API". 2009-03-21 18:28:01 +00:00
glx e968f5c572 (svn r15752) -Fix: don't try to (un)draw the cursor when the screen is not ready 2009-03-17 16:28:21 +00:00
truebrain 3adc0d77b8 (svn r15637) -Fix: when you try to protect something from doing something it shouldn't be doing, make sure that the actions happening after that, doesn't start doing what it shouldn't be doing. This of course would only happen in rare corner cases. 2009-03-07 20:53:32 +00:00
rubidium b55ed2e668 (svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor. 2009-03-03 20:33:57 +00:00
rubidium 66a8c0a132 (svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp 2009-02-25 00:48:04 +00:00
yexo 3bb872e7dd (svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum. 2009-02-25 00:45:52 +00:00
yexo 901230bde1 (svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte. 2009-02-25 00:14:46 +00:00
rubidium d71ec28edc (svn r15431) -Fix (r15425): wrongly added assertion due to unneeded & 0xFF. Now use the same method of handling the colour as it would do when drawing a string instead of a character. 2009-02-09 10:31:37 +00:00
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium 8dae160d0f (svn r15425) -Codechange: some color->colour changes and type safety. 2009-02-09 02:09:47 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 2009-01-10 00:31:47 +00:00
rubidium 0bf775a20a (svn r14668) -Change: use include <> instead of include "" when including ICU's headers. 2008-12-12 19:54:54 +00:00
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 2008-11-02 11:20:15 +00:00
rubidium 219abb5235 (svn r14516) -Fix: determine the default text direction based on the language file instead of hardcoding one. 2008-10-22 20:21:11 +00:00
rubidium 8cce756f8f (svn r14494) -Fix: few MSVC x64 warnings. 2008-10-19 18:47:15 +00:00
rubidium ae0715e8c3 (svn r14479) -Add: initial (optional) support for handling bidirectional scripts and connecting Arabic characters. 2008-10-17 17:14:09 +00:00
rubidium c8e8911ef6 (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. 2008-09-02 15:20:38 +00:00
rubidium 200f405706 (svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs. 2008-08-23 20:16:54 +00:00
belugas c773d33cc3 (svn r14061) -Codechange: constification and move a declaration more logically 2008-08-13 02:48:50 +00:00
rubidium 4ae352d288 (svn r14054) -Fix (rthebeginning): long strings in the edit box would cause OpenTTD to stop drawing the string. This is especially noticable with low resolutions and the chat input box. 2008-08-12 19:29:10 +00:00
rubidium a3910ced70 (svn r14051) -Codechange: enumify the DrawString buffer length. 2008-08-12 11:21:37 +00:00
belugas 61007078b6 (svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too. 2008-08-12 02:20:39 +00:00
rubidium d0c1a989a4 (svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support. 2008-08-11 22:45:11 +00:00
belugas 5f52c44c14 (svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too. 2008-08-11 20:06:57 +00:00
belugas 7f5173bf94 (svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array. 2008-08-11 18:30:52 +00:00
frosch 92afb4d9bd (svn r14030) -Fix (r14027): true != false, also rename the parameter to make 'true' and 'false' more intuitively useable. 2008-08-09 11:04:42 +00:00
belugas 815f08982a (svn r14029) -Fix(r14027): reverting the TC_FROMSTRING back to the magical 0xFE number. Exact meaning will need to be found later. 2008-08-09 03:30:15 +00:00
belugas e3ea3c8fbe (svn r14027) -Codechange: Document a bit the DoDrawString function while removing yet som more magic numbers and one "false" colour 2008-08-09 02:11:46 +00:00
belugas a2f590aeec (svn r14016) -Codechange: Remove some magical numbers 2008-08-08 02:28:28 +00:00
belugas 5c3a18fa90 (svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values 2008-08-04 17:27:06 +00:00
rubidium c5a4e90338 (svn r13910) -Document: string drawing related functions and types (Alberth) 2008-08-01 09:34:34 +00:00
smatz 06a52be95c (svn r13787) -Codechange: resize the red error message box if needed 2008-07-22 19:25:47 +00:00
rubidium fec49bcc83 (svn r13759) -Fix [FS#2147]: selecting non-full length vehicles in the depot gui would place the "mouse pointer" out of the center of the vehicle making it hard to "aim". 2008-07-20 19:21:18 +00:00
rubidium 71820bf129 (svn r13700) -Fix: possible buffer overflow in string truncation code. 2008-07-14 18:22:15 +00:00
rubidium b7c69ba5f0 (svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string. 2008-07-14 17:31:41 +00:00
frosch ecc5d648df (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 2008-06-28 15:44:24 +00:00
smatz 2299181c4b (svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions 2008-06-16 19:38:41 +00:00
skidd13 f95cee3057 (svn r13523) -Codechange: replace qsort by the internal typesafe QSortT for resolution sorting 2008-06-15 16:40:41 +00:00
smatz e40f835a7e (svn r13502) -Fix (r11212): drawing of zoomed out partial sprites could cause deadlocks or crashes 2008-06-13 00:00:04 +00:00
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 2008-05-29 15:13:28 +00:00
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 2008-05-25 22:36:44 +00:00
frosch eca692ef90 (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. 2008-05-21 22:15:39 +00:00
rubidium 7ccda80b0b (svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers. 2008-05-07 09:07:19 +00:00
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 2008-05-06 15:11:33 +00:00
rubidium dde68e922a (svn r12779) -Codechange: remove a few constants from openttd.h. 2008-04-18 21:49:38 +00:00
rubidium e5eac05c6e (svn r12773) -Codechange: replace some magic numbers with enums. 2008-04-18 19:26:52 +00:00
rubidium ee02dd7dad (svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth. 2008-04-07 20:28:58 +00:00
rubidium 327e870962 (svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik. 2008-03-26 10:08:17 +00:00
peter1138 3907ac518b (svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned... 2008-03-04 12:14:34 +00:00
rubidium dc87b05e8c (svn r11834) -Codechange: only include settings_type.h if needed. 2008-01-13 14:37:30 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
frosch cbe7e5d668 (svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots. 2008-01-11 17:12:41 +00:00
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 2008-01-07 14:23:25 +00:00
belugas 3dd61f423a (svn r11734) -Change: Allow ToggleFullScreen to return the result of the operation' attempt. Previously, only visual clues were available.
-Fix[FS#1519]: When you can not use this resolution at full screen, now you'll know that it failed.
As for the reason it did not work, each computer/OS has its reason.
2008-01-01 14:20:48 +00:00
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium a773d45885 (svn r11684) -Codechange: split gfx.h in a type and functional header. 2007-12-23 10:56:02 +00:00
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 2007-12-22 23:30:28 +00:00
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 2007-12-21 19:49:27 +00:00
rubidium 01e20c9140 (svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations. 2007-12-21 19:21:21 +00:00
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 2007-11-19 21:02:30 +00:00
skidd13 58bb5c7525 (svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
belugas 56e6282f2f (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
2007-11-04 00:08:57 +00:00
rubidium 6e7402a1c5 (svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch. 2007-10-05 21:49:15 +00:00
rubidium a4695c9022 (svn r11182) -Fix [FS#1261] (r11174): bounding boxes caused crashes when zoomed out. Patch by SmatZ. 2007-09-28 19:17:33 +00:00
rubidium 8564e12554 (svn r11174) -Codechange: add possibility to show the bounding boxes of sprites using CTRL-B so one can get a better understanding of the used bounding boxes to fix the glitches that still exist. Patch by frosch.
Note that this is not completely glitch free, bounding boxes sometimes aren't removed properly. This is due to the fact that the bounding boxes sometimes are larger than the sprite, which causes a smaller part than the bounding box to be redrawn. This is NOT a bug, but a known implementation limit as we do not want to slow down normal games so the debug graphics are always 100% correct.
2007-09-26 19:27:29 +00:00
rubidium 65f9a0f21a (svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman. 2007-09-09 10:13:17 +00:00
rubidium 0fed821efb (svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables. 2007-08-19 09:38:30 +00:00
rubidium c46e445e69 (svn r10820) -Codechange: make negative currencies red and restore the colour from before the currency was printed; this removes the need to make two strings for printing currencies (one for positive currencies and one for negative currencies).
-Fix [FS#1036]: do not use green for currencies as it is practically unreadable on CRT monitors.
2007-08-07 15:20:31 +00:00
truelight 424757c078 (svn r10781) -Fix: ported more pieces to WinCE, so it compiles a bit more
-Fix: WinCE doesn't support console
-Fix: Set debug lvl4 when running a debug WinCE build (as you can't give parameters any easy way)
2007-08-04 12:53:41 +00:00
glx d6c915e6a6 (svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one 2007-08-03 02:21:10 +00:00
rubidium 59ff947471 (svn r10725) -Codechange: move some window related code out of gfx.cpp to windows.cpp 2007-07-29 19:18:22 +00:00
peter1138 279ed3a9c1 (svn r10724) -Fix (r10723): Toolbar spacing was off-by-one 2007-07-29 16:43:58 +00:00
rubidium 26c62dc5c0 (svn r10723) -Codechange: dynamically sized (width) main toolbars and status bar for when the window becomes less than 640 pixels in width. 2007-07-29 15:48:43 +00:00
peter1138 68c6add8cc (svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model. 2007-07-05 12:23:54 +00:00
truelight 2e19d3cf78 (svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
-Codechange: renamed _timer_counter to _palette_animation_counter, as that is what it is
2007-06-22 20:04:21 +00:00
truelight af8a234db0 (svn r10255) -Codechange: remove some old debug code nobody was using anymore 2007-06-21 16:53:57 +00:00
truelight 56eb1738ee (svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh) 2007-06-21 16:17:47 +00:00
truelight 3fa3d2e365 (svn r10241) -Codechange: CopyToBuffer now produces a buffer that is unreadable from outside the blitter, so the blitter can store anything he likes
-Codechange: added CopyImageToBuffer, which produces a readable buffer for screenshots
-Fix: 32bpp-anim now holds animation on transparent objects to avoid strange graphical effects
-Fix: 32bpp-anim now works correct on mouse-movement (it holds the palette animation correctly)
2007-06-21 12:36:46 +00:00
truelight 65a3abe1c1 (svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends 2007-06-19 15:40:27 +00:00
truelight 1c4760ee06 (svn r10216) -Fix: palette animation always redid all palette entries, where in fact only a few indexes were needed
-Codechange: allow blitters to handle palette animation internally or even disable it; 8bpp uses video-backend for palette animation
2007-06-19 15:04:08 +00:00
truelight 26e9b5ca5f (svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer 2007-06-18 20:08:21 +00:00
truelight 09879ea308 (svn r10203) -Codechange: more moving things to blitter-layer: DrawLine 2007-06-18 19:38:23 +00:00
peter1138 c31ff284c3 (svn r10201) -Codechange: Replace Blitter::SetHorizontalLine with Blitter::DrawRect, as the former was only used by the rectangle drawing code anyway. This lets us draw rectangles in one go. 2007-06-18 18:45:12 +00:00
truelight 003375d375 (svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
 Note: this allows much easier adding other types of video-drivers, like OpenGL
2007-06-17 20:30:28 +00:00
truelight e7221d1fa9 (svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
2007-06-13 10:31:40 +00:00
truelight f3f744d36a (svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
2007-06-12 20:24:12 +00:00
truelight 6b101cc177 (svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
-Add: make it possible to pick your own blitter (-b <blitter>, -h for overview)
-Add: added a new optimized 8bpp blitter (default, caches sprites of all zoom-levels)
-Add: added a debug 8bpp blitter and a very slow normal 8bpp blitter
2007-06-11 11:50:49 +00:00
truelight 98c3056aa6 (svn r10070) -Fix: fix the rounding problem of zoom-levels in zoom.hpp, so it is global for every call 2007-06-08 18:45:14 +00:00
truelight 7d0a1c91d4 (svn r10043) -Change: make templates of the blitters, based on zoom and mode, which makes the optimizing better, and therefor a higher blitter speed (tnx boekabart)
-Codechange: unify the MainBlitter a bit more
2007-06-05 12:01:50 +00:00
truelight 6954045bb4 (svn r9884) -Feature: 2 new zoom-out levels: 8 times and 16 times
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
2007-05-19 22:48:04 +00:00
truelight 765c466b8d (svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
2007-05-15 16:08:46 +00:00
truelight d3f375231f (svn r9844) -Codechange: replace zoomlevel with an enum
-Codechange: use predefined enums for viewport zoomlevels
2007-05-15 14:08:39 +00:00
truelight d7b4fb80d0 (svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible 2007-05-14 15:20:50 +00:00
rubidium 80c259f64f (svn r9672) -Cleanup: lots of coding style fixes around operands. 2007-04-18 22:10:36 +00:00
belugas 607a55f4ec (svn r9662) -Documentation: Doxygen corrections and @file omissions 2007-04-17 20:23:13 +00:00
maedhros 2a32b3b8db (svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files. 2007-04-17 10:08:17 +00:00
maedhros c2312c37d6 (svn r9472) -Fix (r9449): num is the number of newlines in the string, not the number of lines. Also allow for maxh being negative. 2007-03-26 08:04:29 +00:00
maedhros 1a70cf53ff (svn r9449) -Fix: Truncate the newgrf information text in the newgrf gui if it's too long. 2007-03-25 16:09:36 +00:00
belugas 06d3669bb5 (svn r9400) -Codechange: Use some more representative enum names for landscape types. 2007-03-22 03:42:43 +00:00
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 2007-03-07 12:11:48 +00:00
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 2007-03-07 11:47:46 +00:00
truelight 43133c766c (svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
a symbol called _pause (and therefor our variable conflicts with 
 thatone. We shouldn't be using _ as global indicator.....)
2007-03-06 20:59:52 +00:00
Darkvater 915ae8ffc2 (svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
2007-03-05 00:45:56 +00:00
belugas 978d7da818 (svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 2007-03-01 01:24:44 +00:00
rubidium 8ac0e7be21 (svn r8880) -Codechange: make anim cursors an array of structs. 2007-02-24 15:05:14 +00:00
peter1138 92d418b031 (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, 
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr 0edc029f9f (svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h 2007-01-13 14:43:46 +00:00
rubidium f35ed4bbc2 (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 2007-01-10 18:56:51 +00:00
KUDr e373ea7096 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 2007-01-10 18:12:09 +00:00
Renamed from src/gfx.c (Browse further)