Commit Graph

75 Commits (2f30fdc370b826dc07d3bee8f7bb793da3e4eb57)

Author SHA1 Message Date
rubidium a290f2d53a (svn r25455) -Cleanup: make local function really local 11 years ago
rubidium 2771de7f34 (svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it 11 years ago
rubidium aa9bf82121 (svn r25442) -Codechange: move height and ascender information into the FontCache instances 11 years ago
zuu 1c0ec8b3b0 (svn r25343) -Add: method to count the number of lines required to draw a string with line warping 11 years ago
frosch 81e810a4f5 (svn r25314) -Fix (r25313): If '0' is the broadest digit, 0 * sum(10^i, i=0..(n-1)) is not the broadest n-digit number.
-Fix [FS#5562]: Proper size-estimation for numbers with n digits.
11 years ago
frosch ddf817e8f3 (svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them. 11 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
frosch c5328a1986 (svn r24668) -Feature(ette) [FS#5311]: Draw cargo labels in the station list black or white depending on the background colour. (sbr) 12 years ago
yexo e1dc47e65c (svn r23791) -Fix [FS#4960]: resize text panel for parameter description if it doesn't fit in 4 lines.
If you resize the window so it's smaller than default the text might still not fit
13 years ago
rubidium 30eee4db4e (svn r23472) -Fix [FS#4877]: the monospace font broke the bootstrap GUI's ability to find a font 13 years ago
rubidium a531ec1899 (svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure 13 years ago
peter1138 b84174fd4d (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level. 13 years ago
rubidium 49047246fa (svn r23274) -Add: internal support for a monospaced sprite font 13 years ago
rubidium 8f86283203 (svn r23272) -Codechange: pass the initial font size to DrawString and friends 13 years ago
frosch 9340a1d68e (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. 13 years ago
frosch 43f7d6c0b7 (svn r22433) -Add/Fix: Add constants for the palette colours used in the smallmap and fix some windows palette indices. 13 years ago
frosch 7b251297c9 (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
frosch 7cc3d3e143 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 13 years ago
frosch 74e71380ef (svn r22419) -Change: Always use the DOS palette for drawing.
-Remove: the '-i' option for palette selection.
13 years ago
frosch c81c55e008 (svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine(). 13 years ago
rubidium ec4f688ca0 (svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m]. 14 years ago
frosch c8758fc7a7 (svn r20384) -Fix: Update cursor dimensions when reloading grfs resp. changing base graphics, so the cursor does not glitch if it becomes bigger. 14 years ago
yexo ed9d663f58 (svn r20256) -Codechange: add a DrawStringMultiline variant that accepts const char* instead of StringID 14 years ago
alberth c2a871d10b (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 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(). 14 years ago
rubidium f09a74a996 (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 14 years ago
smatz d2e99657fa (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 14 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium 3fcccd89fe (svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot 15 years ago
rubidium 2fa869cbe0 (svn r18143) -Codechange: allow stripping/ignoring of SETX(Y) during DrawString 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
alberth 07b113da46 (svn r17391) -Codechange: Add string box calculation routine for multi-line strings. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth 28ad9897da (svn r16672) -Codechange: Add functions to compute size of strings and sprites. 15 years ago
alberth 484a915ec2 (svn r16606) -Doc: Added/fixed doxygen comments. 15 years ago
alberth f773774d15 (svn r16605) -Codechange: Move ASCII_LETTERSTART to the right source file. 15 years ago
rubidium 650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium dd2661bbbd (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 15 years ago
rubidium 1328acc03e (svn r15849) -Codechange: provide easy access to the real height of the used fonts 15 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) 15 years ago
rubidium 6d3745a924 (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 15 years ago
rubidium 31a5457c03 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
15 years ago
rubidium dcd5ad8b19 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 15 years ago
rubidium 93b0548999 (svn r15796) -Codechange: unify multiline drawstrings 15 years ago
rubidium a1088869f5 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 15 years ago
rubidium 2a422e3e95 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 15 years ago
rubidium 89d614deea (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
glx 583c756679 (svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows 15 years ago
rubidium b3b4be2dde (svn r15782) -Codechange: replace some calls to the all text drawing API to the new one. 15 years ago