yexo
d9bc65cdd8
(svn r20256) -Codechange: add a DrawStringMultiline variant that accepts const char* instead of StringID
14 years ago
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
cd5bc729d4
(svn r20185) -Codechange: reduce the scope of _palette_animation_counter
14 years ago
rubidium
e38f503ec0
(svn r20185) -Codechange: reduce the scope of _palette_animation_counter
14 years ago
alberth
60d7968057
(svn r20045) -Add: Allow SA_BOTTOM alignment in DrawStringMultiLine().
15 years ago
alberth
ddb0f1a614
(svn r20045) -Add: Allow SA_BOTTOM alignment in DrawStringMultiLine().
15 years ago
alberth
8df39931b7
(svn r20044) -Codechange: Using number of lines rather than number of added lines simplifies code.
15 years ago
alberth
e3bb01a7c4
(svn r20044) -Codechange: Using number of lines rather than number of added lines simplifies code.
15 years ago
alberth
c2a871d10b
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
15 years ago
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
15 years ago
alberth
d7cd2e51fc
(svn r20042) -Codechange: Add set methods to DrawStringParams.
15 years ago
alberth
3d329beb1b
(svn r20042) -Codechange: Add set methods to DrawStringParams.
15 years ago
alberth
ba721f9ae5
(svn r20026) -Codechange: No need to copy a formal parameter if the value is not needed further.
15 years ago
alberth
829bd7d276
(svn r20026) -Codechange: No need to copy a formal parameter if the value is not needed further.
15 years ago
frosch
39e941a414
(svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine().
15 years ago
frosch
4b7afccd46
(svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine().
15 years ago
rubidium
ec3c6484a9
(svn r19817) -Fix: MSVC compile warnings
15 years ago
rubidium
241dd9a9f5
(svn r19817) -Fix: MSVC compile warnings
15 years ago
rubidium
a70fd540fc
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
15 years ago
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
15 years ago
frosch
7d3aedc6d3
(svn r19736) -Fix [FS#3802]: Spritepicker still failed for 32bpp-anim blitter.
15 years ago
frosch
f6f092b5ee
(svn r19736) -Fix [FS#3802]: Spritepicker still failed for 32bpp-anim blitter.
15 years ago
frosch
d33e664c8c
(svn r19732) -Fix [FS#3802]: Spritepicker failed for 32bpp blitters due to pitch measured in pixels rather than bytes.
15 years ago
frosch
7579079874
(svn r19732) -Fix [FS#3802]: Spritepicker failed for 32bpp blitters due to pitch measured in pixels rather than bytes.
15 years ago
frosch
efdc25bb73
(svn r19731) -Add: Spritepicker to sprite alignment tool.
15 years ago
frosch
7b30f34ecf
(svn r19731) -Add: Spritepicker to sprite alignment tool.
15 years ago
frosch
d391a1123e
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
15 years ago
frosch
af7051178d
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
15 years ago
frosch
a4413f4cf6
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
glx
fef38e7748
(svn r19067) -Fix [FS#3604]: remove Bidi control characters from the reordered text
15 years ago
glx
fb207873c5
(svn r19067) -Fix [FS#3604]: remove Bidi control characters from the reordered text
15 years ago
rubidium
7127338414
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
f544df0a2d
(svn r18789) -Codechange: when we're not in a network game we don't even need to consider undrawing the chat messages
15 years ago
rubidium
cb820e3da3
(svn r18789) -Codechange: when we're not in a network game we don't even need to consider undrawing the chat messages
15 years ago
rubidium
3fcccd89fe
(svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot
15 years ago
rubidium
90b7f0f3cb
(svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot
15 years ago
frosch
48efc698bb
(svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads.
15 years ago
frosch
169141433a
(svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads.
15 years ago
frosch
083b6ee509
(svn r18358) -Cleanup: More usage of EPV_CYCLES_(DARK|GLITTER)_WATER.
15 years ago
frosch
df0b347b45
(svn r18358) -Cleanup: More usage of EPV_CYCLES_(DARK|GLITTER)_WATER.
15 years ago
rubidium
da30e736ca
(svn r18330) -Cleanup: remove some unneeded includes
15 years ago
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
15 years ago
rubidium
3ad5daa7e4
(svn r18228) -Fix: make string drawing big font aware, i.e. don't big characters flicker like a stroboscope.
15 years ago
rubidium
e772ec1c97
(svn r18228) -Fix: make string drawing big font aware, i.e. don't big characters flicker like a stroboscope.
15 years ago
rubidium
2fa869cbe0
(svn r18143) -Codechange: allow stripping/ignoring of SETX(Y) during DrawString
15 years ago
rubidium
e297f79b7f
(svn r18143) -Codechange: allow stripping/ignoring of SETX(Y) during DrawString
15 years ago
peter1138
7ddfe1c6b2
(svn r18106) -Codechange: Draw string underline FONT_HEIGHT_NORMAL pixels down, not 10.
15 years ago
peter1138
31f7df2cb0
(svn r18106) -Codechange: Draw string underline FONT_HEIGHT_NORMAL pixels down, not 10.
15 years ago
rubidium
b2d7edddfa
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
15 years ago
rubidium
e87f2ece70
(svn r17900) -Fix (r2497): ExtraPaletteValues' tables were all a factor 3 too big
...
-Codechange: replace some magic numbers related to palette animation with constants
15 years ago
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
15 years ago
rubidium
a1197e2513
(svn r17842) -Fix: DrawStringMultiLine would in some corner case, top = bottom + 1, draw the string
15 years ago
rubidium
0501bd1325
(svn r17842) -Fix: DrawStringMultiLine would in some corner case, top = bottom + 1, draw the string
15 years ago
rubidium
aec99b1790
(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.
15 years ago
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.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
alberth
07b113da46
(svn r17391) -Codechange: Add string box calculation routine for multi-line strings.
15 years ago
alberth
a3ddb8a235
(svn r17391) -Codechange: Add string box calculation routine for multi-line strings.
15 years ago
rubidium
533e3da493
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
15 years ago
rubidium
07d2af338e
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
15 years ago
alberth
6432986704
(svn r17306) -Fix: DrawStringMultiLine() computed available width and height wrongly.
15 years ago
alberth
79a8da1c04
(svn r17306) -Fix: DrawStringMultiLine() computed available width and height wrongly.
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
alberth
95ac767add
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
16 years ago
alberth
9efd32d13c
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
16 years ago
alberth
c52fe937d5
(svn r16677) -Codechange: Dimension width and height are unsigned.
16 years ago
alberth
9b070b5405
(svn r16677) -Codechange: Dimension width and height are unsigned.
16 years ago
alberth
28ad9897da
(svn r16672) -Codechange: Add functions to compute size of strings and sprites.
16 years ago
alberth
996e5eea47
(svn r16672) -Codechange: Add functions to compute size of strings and sprites.
16 years ago
rubidium
e48606124d
(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.
16 years ago
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.
16 years ago
rubidium
6a5c852aea
(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.
16 years ago
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.
16 years ago
rubidium
d39f442bd0
(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)
16 years ago
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)
16 years ago
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
rubidium
168ae6f7e2
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
rubidium
08655368eb
(svn r16297) -Codechange: silence more ICC warnings
16 years ago
rubidium
5f81ba886c
(svn r16297) -Codechange: silence more ICC warnings
16 years ago
rubidium
241af768f0
(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
16 years ago
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
16 years ago
rubidium
3662d3d09b
(svn r16220) -Fix [FS#2862]: possible crashes when quiting OpenTTD or forcing resizes/redraws of the screen during map generation
16 years ago
rubidium
d685ca0619
(svn r16220) -Fix [FS#2862]: possible crashes when quiting OpenTTD or forcing resizes/redraws of the screen during map generation
16 years ago
rubidium
e83ef9b4c7
(svn r16159) -Change [FS#2846]: warn when multiline strings are drawn with DrawString and not DrawStringMultiLine.
16 years ago
rubidium
c21062a728
(svn r16159) -Change [FS#2846]: warn when multiline strings are drawn with DrawString and not DrawStringMultiLine.
16 years ago
rubidium
dd2661bbbd
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
16 years ago
rubidium
11c6d30e77
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
16 years ago
rubidium
d361c8e7c9
(svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early
16 years ago
rubidium
171f98d523
(svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early
16 years ago
rubidium
1328acc03e
(svn r15849) -Codechange: provide easy access to the real height of the used fonts
16 years ago
rubidium
e8d76e79ee
(svn r15849) -Codechange: provide easy access to the real height of the used fonts
16 years ago
rubidium
e1ca9bbeed
(svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways)
16 years ago
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)
16 years ago
rubidium
8d7635616d
(svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text.
16 years ago
rubidium
5c44bb6b63
(svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text.
16 years ago
rubidium
8b47431249
(svn r15832) -Codechange: improve the aligning of right aligned/centered strings
16 years ago
rubidium
c9e2e22bc0
(svn r15832) -Codechange: improve the aligning of right aligned/centered strings
16 years ago
rubidium
6d3745a924
(svn r15813) -Codechange: remove the last remnants of the old text drawing API.
16 years ago
rubidium
e75e1e62cb
(svn r15813) -Codechange: remove the last remnants of the old text drawing API.
16 years ago
rubidium
31a5457c03
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
16 years ago
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
16 years ago
rubidium
136bbbea9c
(svn r15800) -Codechange: make the engine gui use the new multiline API.
16 years ago
rubidium
a07fae67c3
(svn r15800) -Codechange: make the engine gui use the new multiline API.
16 years ago
rubidium
dcd5ad8b19
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
93b0548999
(svn r15796) -Codechange: unify multiline drawstrings
16 years ago
rubidium
676bf31e82
(svn r15796) -Codechange: unify multiline drawstrings
16 years ago
rubidium
a1088869f5
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
16 years ago
rubidium
f11300d1f9
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
16 years ago
rubidium
2a422e3e95
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
16 years ago
rubidium
69decac406
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
16 years ago
rubidium
89d614deea
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
16 years ago
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
16 years ago
rubidium
c1aabd9842
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
glx
583c756679
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
16 years ago
glx
9fcff01850
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
16 years ago
rubidium
303a8f9673
(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.
16 years ago
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.
16 years ago
rubidium
83ebb4ed74
(svn r15779) -Codechange: unify (most) of the text drawing "API".
16 years ago
rubidium
a22559ff95
(svn r15779) -Codechange: unify (most) of the text drawing "API".
16 years ago
glx
f58c95d532
(svn r15752) -Fix: don't try to (un)draw the cursor when the screen is not ready
16 years ago
glx
e968f5c572
(svn r15752) -Fix: don't try to (un)draw the cursor when the screen is not ready
16 years ago
truebrain
bc56b0edf7
(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.
16 years ago
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.
16 years ago
rubidium
2972ad372b
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
16 years ago
rubidium
b55ed2e668
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
16 years ago
rubidium
b2def94607
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
rubidium
66a8c0a132
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
yexo
7e818f0456
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
16 years ago
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
16 years ago
yexo
bd2544b5ea
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
16 years ago
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
16 years ago
rubidium
b1a1c022fb
(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.
16 years ago
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.
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
8dae160d0f
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
f98e498771
(svn r14668) -Change: use include <> instead of include "" when including ICU's headers.
16 years ago
rubidium
0bf775a20a
(svn r14668) -Change: use include <> instead of include "" when including ICU's headers.
16 years ago
skidd13
9b282b3e51
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
skidd13
706dd0f86c
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
rubidium
c7bd7fb221
(svn r14516) -Fix: determine the default text direction based on the language file instead of hardcoding one.
16 years ago
rubidium
219abb5235
(svn r14516) -Fix: determine the default text direction based on the language file instead of hardcoding one.
16 years ago
rubidium
321e40115d
(svn r14494) -Fix: few MSVC x64 warnings.
16 years ago
rubidium
8cce756f8f
(svn r14494) -Fix: few MSVC x64 warnings.
16 years ago
rubidium
8ee8e0fac5
(svn r14479) -Add: initial (optional) support for handling bidirectional scripts and connecting Arabic characters.
16 years ago
rubidium
ae0715e8c3
(svn r14479) -Add: initial (optional) support for handling bidirectional scripts and connecting Arabic characters.
16 years ago
rubidium
c358955127
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
16 years ago
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
16 years ago
rubidium
07c20252c3
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
16 years ago
rubidium
200f405706
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
16 years ago
belugas
ae15f2e063
(svn r14061) -Codechange: constification and move a declaration more logically
16 years ago
belugas
c773d33cc3
(svn r14061) -Codechange: constification and move a declaration more logically
16 years ago
rubidium
2053688226
(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.
16 years ago
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.
16 years ago
rubidium
b76620939d
(svn r14051) -Codechange: enumify the DrawString buffer length.
16 years ago
rubidium
a3910ced70
(svn r14051) -Codechange: enumify the DrawString buffer length.
16 years ago
belugas
5cbd0fb5a4
(svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too.
16 years ago
belugas
61007078b6
(svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too.
16 years ago
rubidium
31d69a49e8
(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.
16 years ago
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.
16 years ago
belugas
eb461386ce
(svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too.
16 years ago
belugas
5f52c44c14
(svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too.
16 years ago
belugas
ba3d49df40
(svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array.
16 years ago
belugas
7f5173bf94
(svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array.
16 years ago
frosch
3c2128dedb
(svn r14030) -Fix (r14027): true != false, also rename the parameter to make 'true' and 'false' more intuitively useable.
16 years ago
frosch
92afb4d9bd
(svn r14030) -Fix (r14027): true != false, also rename the parameter to make 'true' and 'false' more intuitively useable.
16 years ago
belugas
82ada4b3d0
(svn r14029) -Fix(r14027): reverting the TC_FROMSTRING back to the magical 0xFE number. Exact meaning will need to be found later.
16 years ago
belugas
815f08982a
(svn r14029) -Fix(r14027): reverting the TC_FROMSTRING back to the magical 0xFE number. Exact meaning will need to be found later.
16 years ago
belugas
b714273706
(svn r14027) -Codechange: Document a bit the DoDrawString function while removing yet som more magic numbers and one "false" colour
16 years ago
belugas
e3ea3c8fbe
(svn r14027) -Codechange: Document a bit the DoDrawString function while removing yet som more magic numbers and one "false" colour
16 years ago
belugas
e89b108161
(svn r14016) -Codechange: Remove some magical numbers
16 years ago
belugas
a2f590aeec
(svn r14016) -Codechange: Remove some magical numbers
16 years ago
belugas
39c92f9068
(svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values
16 years ago
belugas
5c3a18fa90
(svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values
16 years ago
rubidium
019a519446
(svn r13910) -Document: string drawing related functions and types (Alberth)
16 years ago
rubidium
c5a4e90338
(svn r13910) -Document: string drawing related functions and types (Alberth)
16 years ago
smatz
766e57df5f
(svn r13787) -Codechange: resize the red error message box if needed
16 years ago
smatz
06a52be95c
(svn r13787) -Codechange: resize the red error message box if needed
16 years ago
rubidium
8113efb0f2
(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".
16 years ago
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".
16 years ago
rubidium
42d0500f40
(svn r13700) -Fix: possible buffer overflow in string truncation code.
17 years ago
rubidium
71820bf129
(svn r13700) -Fix: possible buffer overflow in string truncation code.
17 years ago
rubidium
f6ab930cc0
(svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string.
17 years ago
rubidium
b7c69ba5f0
(svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string.
17 years ago
frosch
cfdc710104
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
17 years ago
frosch
ecc5d648df
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
17 years ago
smatz
e00df941fa
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
17 years ago
smatz
2299181c4b
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
17 years ago
skidd13
fc648a2b30
(svn r13523) -Codechange: replace qsort by the internal typesafe QSortT for resolution sorting
17 years ago
skidd13
f95cee3057
(svn r13523) -Codechange: replace qsort by the internal typesafe QSortT for resolution sorting
17 years ago
smatz
4298508918
(svn r13502) -Fix (r11212): drawing of zoomed out partial sprites could cause deadlocks or crashes
17 years ago
smatz
e40f835a7e
(svn r13502) -Fix (r11212): drawing of zoomed out partial sprites could cause deadlocks or crashes
17 years ago
rubidium
e7a501100a
(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.
17 years ago
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.
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
frosch
7f80552293
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
17 years ago
frosch
eca692ef90
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
17 years ago
rubidium
e0e1bf76a2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
17 years ago
rubidium
7ccda80b0b
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
17 years ago
rubidium
1ce0b03bf0
(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.
17 years ago
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.
17 years ago
rubidium
7e5639ccea
(svn r12779) -Codechange: remove a few constants from openttd.h.
17 years ago
rubidium
dde68e922a
(svn r12779) -Codechange: remove a few constants from openttd.h.
17 years ago
rubidium
36d3553b9b
(svn r12773) -Codechange: replace some magic numbers with enums.
17 years ago
rubidium
e5eac05c6e
(svn r12773) -Codechange: replace some magic numbers with enums.
17 years ago
rubidium
1dc0af3248
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
17 years ago
rubidium
ee02dd7dad
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
17 years ago
rubidium
a606fe9610
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
17 years ago
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.
17 years ago
peter1138
debabbbd9a
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
17 years ago
peter1138
3907ac518b
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
frosch
7d3ecec5b9
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
17 years ago
frosch
cbe7e5d668
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
a3ccdcea36
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
belugas
61285721a4
(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.
17 years ago
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.
17 years ago
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
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'
17 years ago
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
17 years ago
rubidium
a773d45885
(svn r11684) -Codechange: split gfx.h in a type and functional header.
17 years ago
rubidium
1f6043458c
(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.
17 years ago
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.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
7a4d96f629
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
...
This fixes also FS#1450
17 years ago
skidd13
58bb5c7525
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
...
This fixes also FS#1450
17 years ago
belugas
e2c0f1faf7
(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)
17 years ago
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)
17 years ago
rubidium
d92dbbb029
(svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch.
17 years ago
rubidium
6e7402a1c5
(svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch.
17 years ago
rubidium
6222597152
(svn r11182) -Fix [FS#1261] (r11174): bounding boxes caused crashes when zoomed out. Patch by SmatZ.
17 years ago
rubidium
a4695c9022
(svn r11182) -Fix [FS#1261] (r11174): bounding boxes caused crashes when zoomed out. Patch by SmatZ.
17 years ago
rubidium
d464d7587d
(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.
17 years ago
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.
17 years ago
rubidium
0ca9fd7dc2
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
17 years ago
rubidium
65f9a0f21a
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
17 years ago
rubidium
4ef6e75609
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
17 years ago
rubidium
0fed821efb
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
17 years ago
rubidium
34545a381a
(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.
17 years ago
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.
17 years ago
truelight
8ca03887b9
(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)
17 years ago
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)
17 years ago
glx
f95df6bb61
(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
17 years ago
glx
d6c915e6a6
(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
17 years ago
rubidium
17370d5ae7
(svn r10725) -Codechange: move some window related code out of gfx.cpp to windows.cpp
17 years ago
rubidium
59ff947471
(svn r10725) -Codechange: move some window related code out of gfx.cpp to windows.cpp
17 years ago
peter1138
5e1cd09ea4
(svn r10724) -Fix (r10723): Toolbar spacing was off-by-one
17 years ago
peter1138
279ed3a9c1
(svn r10724) -Fix (r10723): Toolbar spacing was off-by-one
17 years ago
rubidium
39a2f2f4a8
(svn r10723) -Codechange: dynamically sized (width) main toolbars and status bar for when the window becomes less than 640 pixels in width.
17 years ago
rubidium
26c62dc5c0
(svn r10723) -Codechange: dynamically sized (width) main toolbars and status bar for when the window becomes less than 640 pixels in width.
17 years ago
peter1138
5e85e8c5e0
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
18 years ago
peter1138
68c6add8cc
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
18 years ago
truelight
7bfc7d19e8
(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
18 years ago
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
18 years ago
truelight
f58ea51e2a
(svn r10255) -Codechange: remove some old debug code nobody was using anymore
18 years ago
truelight
af8a234db0
(svn r10255) -Codechange: remove some old debug code nobody was using anymore
18 years ago
truelight
66a136be09
(svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh)
18 years ago
truelight
56eb1738ee
(svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh)
18 years ago
truelight
d614cec205
(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)
18 years ago
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)
18 years ago
truelight
766168ad43
(svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends
18 years ago
truelight
65a3abe1c1
(svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends
18 years ago
truelight
cd10965a27
(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
18 years ago
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
18 years ago
truelight
6785ea670f
(svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer
18 years ago
truelight
26e9b5ca5f
(svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer
18 years ago
truelight
d7736f6b83
(svn r10203) -Codechange: more moving things to blitter-layer: DrawLine
18 years ago
truelight
09879ea308
(svn r10203) -Codechange: more moving things to blitter-layer: DrawLine
18 years ago
peter1138
704a67ff0b
(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.
18 years ago
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.
18 years ago
truelight
79cd3f5db0
(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
18 years ago
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
18 years ago
truelight
f782a311f8
(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
18 years ago