Age | Commit message (Collapse) | Author |
|
svn-id: r46320
|
|
svn-id: r44493
|
|
- Remove use of tabs for formatting, now in nearly all cases tabs are only used for indentation
- Use "uint" instead of "unsigned int" in the whole engine for consistency's sake
- Strip some trailing tabs and leading whitespaces
svn-id: r44478
|
|
svn-id: r44432
|
|
svn-id: r44362
|
|
separately but the whole string at once. Also removed the markDirty parameter from Font::drawChar() since it's not needed anymore.
svn-id: r43368
|
|
* Changed Font::getStringWidth() and Font::getStringHeight() to return uint instead of int.
* Made the Font::drawString() overload which accepts a Common::String the "default" one. The overload accepting a (byte *) now calls that one (it was the other way around before).
* Added proper line centering to the Font::drawString() routine.
svn-id: r43053
|
|
speaking characters; they are 0-based after all.
* Fixed font blitting algorithm to allow for both white fonts and transparency.
svn-id: r43044
|
|
indexes are indexed from 1 in the data files so we need to subtract 1.
* Turned on font transparency again.
svn-id: r43022
|
|
widths (a temporary variable used for storing the width of the current line was not being reset).
* Temporarily disabled font transparency because the dragon's text is rendered hollow (transparency inside glyph bodies).
svn-id: r42993
|
|
don't end with '|' like they should.
svn-id: r42897
|
|
* Fixed unsigned to signed comparison warning
svn-id: r42834
|
|
* Made Font::getStringWidth() calculate the width of the string properly now that handling of multi-row strings is in
* Fixed bug which caused the last column of pixels in the last letter of a string to linger on the screen
svn-id: r42832
|
|
newline and end-of-string marker).
svn-id: r42788
|
|
_smallFont and _bigFont so each font can be handled separately.
svn-id: r42514
|
|
svn-id: r42192
|
|
whether to mark a dirty rect for a particular draw (also added such support to the Font class since it's needed by Text). Made spacing parameters for Text instances mandatory.
svn-id: r42066
|
|
svn-id: r41981
|
|
a length instead of a Common::String. Changed the former drawString to be a wrapper for the new one.
svn-id: r41980
|
|
svn-id: r41776
|
|
rectangles).
svn-id: r41656
|
|
svn-id: r41553
|
|
Font::getStringWidth().
svn-id: r41530
|
|
Moved the initializer list of the Font constructor to the constructor body (for readability).
svn-id: r41529
|
|
handling by replacing the appropriate colours before drawing. Added Font::setColour() method for changing the current font colour. Added include guards to draci/font.h. Moved kFontBig and kFontSmall constants to draci/font.cpp to prevent redefinition errors.
svn-id: r41524
|
|
classes and other engines.
svn-id: r41523
|
|
constants for font types.
svn-id: r41522
|
|
svn-id: r41511
|
|
svn-id: r41510
|
|
on the screen.
svn-id: r41475
|
|
svn-id: r41472
|
|
now calculate the number of pixels that can be drawn without overflowing beforehand. Also added asserts to catch any negative value passed for the coordinates.
svn-id: r41471
|
|
making it check for NULL pointers itself to prevent double free / corruption. This also fixes a potential bug in the destructor.
svn-id: r41469
|
|
Reshuffled some old comments.
svn-id: r41467
|
|
animation to use the original game fonts. Removed the old drawString() hack.
svn-id: r41454
|