summaryrefslogtreecommitdiff
path: root/gfx.c
AgeCommit message (Collapse)Author
2005-07-21(svn r2664) Remove depedency on player.h from variables.htron
2005-07-21(svn r2663) Include variables.h only in these files which need it, not ↵tron
globally via openttd.h
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 r2617) - Fix: fix some warnings, and reenable vs.net2003 ↵Darkvater
signed/unsigned warnings
2005-07-17(svn r2614) - Fix: Trunctuate function used one less character than it was ↵Darkvater
supposed to. Because of this real width and reported width didn't correspond with eachother.
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-07-11(svn r2546) Don't calculate a value which never gets used and simplify some ↵tron
calculations
2005-07-08(svn r2534) Small cleanuptron
2005-07-05(svn r2522) Reorganize sprite load and decompression in order to remove a ↵tron
special case from the sprite blitter, which decompressed certain sprites every time when blitting them
2005-07-05(svn r2518) Small cleanuptron
2005-07-03(svn r2513) Small cleanuptron
2005-07-03(svn r2512) Small cleanuptron
2005-07-01(svn r2503) Small cleanuptron
2005-06-30(svn r2502) Small cleanuptron
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-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.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 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-11(svn r1861) Constify Get(Non)Sprite()tron
2005-02-10(svn r1855) Handle endianness of sprite headers when loading a sprite, not ↵tron
everytime when accessing it
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-07(svn r1840) Repel str_buffr and use local buffers where possibletron
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-02-06(svn r1813) Declare functions implemented in strings.c in their own shiny ↵tron
new header (though i think some of these function don't belong into strings.c)
2005-01-23(svn r1631) A couple of fixes for the signed/unsigned warnings. Only ↵dominik
train_cmd.c remains to need fixing...
2005-01-22(svn r1596) Add some more staticstron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-18(svn r1557) Replace strange if () do while () construct with a plain for ()tron
2005-01-14(svn r1508) Remove duplicate declarations and include proper headers where ↵tron
necessary
2005-01-06(svn r1402) Trim trailing whitespacetron
2004-12-23(svn r1268) -Fix: some warnings in gfx.c fixeddarkvater
-Fix: Makefile now correctly works for cygwin/mingw; altough defining only cygwin does not compile the game -Fix: moved SDL information message from severity 0 to 1. Only errors/severe warnings should be level 0
2004-12-14(svn r1091) Fix: Finally station names use 100% the correct color in ↵dominik
transparent mode
2004-12-13(svn r1045) -Fix: OpenTTD compiles again under VC6 (sign_de)truelight
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-11-26(svn r822) Use a struct instead of pairs of bytes for the string colormap.tron
While here give the string colormap a more canonical name.
2004-11-26(svn r819) Code cleanup: colors for langfile strings are now taken from a ↵dominik
color table instead of a sprite
2004-11-19(svn r679) Clarify bp.sprite assignment in GfxMainBlitter(). Pointed out by ↵pasky
Oskar.
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-11-13(svn r564) Simplify scroll logic and correct one erroneous use of memcpy()tron
2004-11-01(svn r499) Merge r498 to trunk:tron
Disabled buttons flicker no more This solves bug report 991101
2004-09-23(svn r312) -Fix: [926105] ctrl + d bug. Longest outstanding bug has been ↵darkvater
fixed \o/ 2004-03-30 (Tron) -Fix: [1030393] some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution (Tron)
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