summaryrefslogtreecommitdiff
path: root/gfx.h
AgeCommit message (Collapse)Author
2006-08-20(svn r5967) -Change: use right alignment for the year in the player's ↵rubidium
balance window instead of centering (about) 'string width' / 2 from the right edge
2006-05-09(svn r4802) - Codechange: replace _stringwidth_base and associated magic ↵peter1138
numbers with a FontSize enum, using the numbers (which are SpriteIDs) in only the places needed.
2006-03-24(svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw ↵Darkvater
it again when it enters. Added both for WIN32 and SDL. Since Win95 has troubles with TrackMouseEvent(), this function was just simply rewritten which was the easiest. Based on a patch by DmitryKo.
2005-11-16(svn r3191) Move declaration and definition of _dbg_screen_rect to a place ↵tron
where it somewhat makes sense and wrap them in #ifdef _DEBUG
2005-11-13(svn r3176) Use proper types, not some variants of inttron
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-09-18(svn r2962) - const correctness for all Get* functions and most Draw* ↵Darkvater
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
2005-09-10(svn r2933) Implement the non-breaking spacetron
2005-09-10(svn r2932) Give the strings consisting of an up/a down arrow symbolic namestron
2005-07-24(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic ↵celestar
numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-19(svn r2644) - Fix: my name was mistyped ;pDarkvater
- Add DoDrawStringCentered() and change the multiline strings in the about box to single-line ones
2005-07-17(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. ↵Darkvater
Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde) - CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer.
2005-07-17(svn r2607) - Feature: add support for truncating strings to a given (pixel) ↵Darkvater
length. Function courtesy of Ludde.
2005-07-15(svn r2571) Add explicit type Pixel for ... Pixelstron
2005-06-30(svn r2497) Use a struct array for palette entries instead of a flat byte arraytron
2005-06-06(svn r2420) - Codechange: magic number elminitation of cursorsprites.Darkvater
2005-05-16(svn r2334) - Fix (regression): moved togglefullscreen into the ↵Darkvater
video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
2005-05-14(svn r2310) - Fix: Game would crash if you full-screened with the ↵Darkvater
'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug. - Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list. - Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-02-21(svn r1895) - Fix: add assert for charwidth getter just in caseDarkvater
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-10(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites ↵tron
(returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
2005-02-10(svn r1853) Move spritecache function declarations into a header of their ↵tron
own and use SpriteID as parameter type where appropriate
2005-02-08(svn r1852) Start cleaning up sprite handling:tron
- Complement the sprite header struct with a variable sized array for the sprite data and rename it to Sprite. - Use the correct type Sprite* instead of casting all the time (this causes some "assignment from incompatible pointer type" warnings, nothing serious, will be resolved soon)
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2004-12-14(svn r1091) Fix: Finally station names use 100% the correct color in ↵dominik
transparent mode
2004-12-12(svn r1038) Feature: OpenTTD runs with the grf files of the DOS versiondominik
Please read the Readme for further information. There are some minor graphical glitches when you use the DOS files. E.g. the autorail button is a bit screwed up.
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-09-21(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game ↵darkvater
Options' menu which lets you set fullscreen ingame.
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight