Commit Graph

125 Commits (05b55c4d4349b69026213ce12e1a41af8e87b069)

Author SHA1 Message Date
rubidium be2b87c1cd (svn r25455) -Cleanup: make local function really local 11 years ago
rubidium 7c0f34130c (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 d724088a1c (svn r25442) -Codechange: move height and ascender information into the FontCache instances 11 years ago
zuu e311902198 (svn r25343) -Add: method to count the number of lines required to draw a string with line warping 11 years ago
frosch 4261b6cc82 (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 ce110eed32 (svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them. 11 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
frosch 3e367cd087 (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 b1a830491a (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 ebb3ad33ff (svn r23472) -Fix [FS#4877]: the monospace font broke the bootstrap GUI's ability to find a font 13 years ago
rubidium 2ccbd2a6f5 (svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure 13 years ago
peter1138 81598273e9 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level. 13 years ago
rubidium dfefcab47d (svn r23274) -Add: internal support for a monospaced sprite font 13 years ago
rubidium 2075bc702c (svn r23272) -Codechange: pass the initial font size to DrawString and friends 13 years ago
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. 13 years ago
frosch 83c5f77810 (svn r22433) -Add/Fix: Add constants for the palette colours used in the smallmap and fix some windows palette indices. 13 years ago
frosch 5e449b8fae (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
frosch 22286bd7b6 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 13 years ago
frosch bbcd2bab5d (svn r22419) -Change: Always use the DOS palette for drawing.
-Remove: the '-i' option for palette selection.
13 years ago
frosch b18211bb9d (svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine(). 13 years ago
rubidium 7efd7e19ed (svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m]. 14 years ago
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. 14 years ago
yexo d9bc65cdd8 (svn r20256) -Codechange: add a DrawStringMultiline variant that accepts const char* instead of StringID 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 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(). 14 years ago
rubidium 398418b8fa (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 53aaabe6e9 (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 14 years ago
rubidium f94c83a387 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium 90b7f0f3cb (svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot 15 years ago
rubidium e297f79b7f (svn r18143) -Codechange: allow stripping/ignoring of SETX(Y) during DrawString 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
alberth a3ddb8a235 (svn r17391) -Codechange: Add string box calculation routine for multi-line strings. 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth 996e5eea47 (svn r16672) -Codechange: Add functions to compute size of strings and sprites. 15 years ago
alberth c1ef6abc6a (svn r16606) -Doc: Added/fixed doxygen comments. 15 years ago
alberth 0aed5bf7d7 (svn r16605) -Codechange: Move ASCII_LETTERSTART to the right source file. 15 years ago
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 15 years ago
rubidium e8d76e79ee (svn r15849) -Codechange: provide easy access to the real height of the used fonts 15 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) 15 years ago
rubidium e75e1e62cb (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 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 d837fc4d03 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 16 years ago
rubidium 676bf31e82 (svn r15796) -Codechange: unify multiline drawstrings 16 years ago
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString 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 9003641095 (svn r15790) -Codechange: remove the *Centered 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 9fcff01850 (svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows 16 years ago
rubidium 8a758beec3 (svn r15782) -Codechange: replace some calls to the all text drawing API to the new one. 16 years ago
rubidium a22559ff95 (svn r15779) -Codechange: unify (most) of the text drawing "API". 16 years ago
rubidium 8dae160d0f (svn r15425) -Codechange: some color->colour changes and type safety. 16 years ago
rubidium 3a13b75e37 (svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates. 16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium fc216aeeb8 (svn r14229) -Feature: allow overriding the palette of the base GRFs. This way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported. 16 years ago
rubidium a4854aaddc (svn r14152) -Fix (r14146): Apple decided to use a name I wanted to use... thus making compilation fail on OSX (planetmaker) 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
rubidium a3910ced70 (svn r14051) -Codechange: enumify the DrawString buffer length. 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 9e883ca48f (svn r14028) -Fix(r14027): Wrong value for the multiline_skipping. Just the other way around. 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 5c3a18fa90 (svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values 16 years ago
rubidium c5a4e90338 (svn r13910) -Document: string drawing related functions and types (Alberth) 16 years ago
smatz 06a52be95c (svn r13787) -Codechange: resize the red error message box if needed 16 years ago
frosch ecc5d648df (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 16 years ago
smatz 7a7ff65ac5 (svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines 16 years ago
smatz 2299181c4b (svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions 16 years ago
rubidium 402a1e24ba (svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations. 16 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
smatz 8b56e7544e (svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed 17 years ago
rubidium fde33b5547 (svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places. 17 years ago
peter1138 68707808c0 (svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel. 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
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 a773d45885 (svn r11684) -Codechange: split gfx.h in a type and functional header. 17 years ago