peter1138
1a4f1c8177
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
18 years ago
Darkvater
d7d4f0192d
(svn r6953) -Codechange: Change FormatStringLinebreaks in such a way that if no whitespace was seen
...
for the 'current line' of a certain maximum width, the string will be truncated instead
of the old behaviour which just left it alone.
18 years ago
peter1138
61611711e3
(svn r6908) - Codechange: Modify DrawStringMultiLine() to return the number of pixel lines used, and use it for drawing NewGRF additional text (mart3p)
18 years ago
Darkvater
3ccc87b376
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
...
box of the string. Therefore rename the function to GetStringBoundingRect()
and have it return a BoundingRect type of width/height
18 years ago
tron
b83a3f8726
(svn r6222) Remove struct ColorList, because the names of its attributes are plain confusing
...
All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear
Also add the names of colour the gradients as enum
18 years ago
tron
17c610c0f4
(svn r6209) Move DrawFrameRect() out of gfx.[ch], because it uses data (_color_list) which the renderer shouldn't have know about
18 years ago
tron
2eb76813ed
(svn r6184) Remove the unused (because it was NULL in all callers) second parameter of FillDrawPixelInfo() and simplify some expressions
18 years ago
tron
523519c8ec
(svn r6183) Move GetDrawStringPlayerColor() out of gfx.[ch]
18 years ago
rubidium
0c3093b25f
(svn r5967) -Change: use right alignment for the year in the player's balance window instead of centering (about) 'string width' / 2 from the right edge
18 years ago
peter1138
fd778ecafa
(svn r4802) - Codechange: replace _stringwidth_base and associated magic numbers with a FontSize enum, using the numbers (which are SpriteIDs) in only the places needed.
19 years ago
Darkvater
ea1adebe31
(svn r4075) - Feature: Undraw the mouse when it leaves the window and Draw 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.
19 years ago
tron
1d109214bc
(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG
19 years ago
tron
357aba7475
(svn r3176) Use proper types, not some variants of int
19 years ago
tron
2cc2154ad2
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
19 years ago
Darkvater
8e6a911700
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
...
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
19 years ago
tron
9de2c05c56
(svn r2933) Implement the non-breaking space
19 years ago
tron
0fe36a6900
(svn r2932) Give the strings consisting of an up/a down arrow symbolic names
19 years ago
celestar
238e47cd42
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic 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.
19 years ago
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
19 years ago
Darkvater
f0c0c03c5f
(svn r2644) - Fix: my name was mistyped ;p
...
- Add DoDrawStringCentered() and change the multiline strings in the about box to single-line ones
19 years ago
Darkvater
0550c4a87a
(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. 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.
19 years ago
Darkvater
7fceed0446
(svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde.
19 years ago
tron
8f71864bef
(svn r2571) Add explicit type Pixel for ... Pixels
19 years ago
tron
9d75047211
(svn r2497) Use a struct array for palette entries instead of a flat byte array
19 years ago
Darkvater
5fed47964e
(svn r2420) - Codechange: magic number elminitation of cursorsprites.
19 years ago
Darkvater
7daaf1f100
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
20 years ago
Darkvater
2aa94201dc
(svn r2310) - Fix: Game would crash if you full-screened with the '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
20 years ago
Darkvater
33ae18b8b3
(svn r1895) - Fix: add assert for charwidth getter just in case
20 years ago
Darkvater
d865c55007
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified 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().
20 years ago
tron
94c75f33bb
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
20 years ago
tron
2a151d9354
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
20 years ago
tron
092e72d60d
(svn r1852) Start cleaning up sprite handling:
...
- 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)
20 years ago
tron
2fb453a4a5
(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers
20 years ago
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
dominik
af9dc1f817
(svn r1091) Fix: Finally station names use 100% the correct color in transparent mode
20 years ago
dominik
52134822b8
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
...
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.
20 years ago
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
20 years ago
darkvater
493df26058
(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago