mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 20:21:06 +00:00
Removed superfluous checks for NULL in DraciFont::freeFont().
svn-id: r41510
This commit is contained in:
parent
b8ec907ea0
commit
d6ddbf7062
@ -96,11 +96,8 @@ bool DraciFont::setFont(Common::String &filename) {
|
||||
}
|
||||
|
||||
void DraciFont::freeFont() {
|
||||
// If there is a font already loaded, free it
|
||||
if (_charData) {
|
||||
delete[] _charWidths;
|
||||
delete[] _charData;
|
||||
}
|
||||
delete[] _charWidths;
|
||||
delete[] _charData;
|
||||
}
|
||||
|
||||
uint8 DraciFont::getCharWidth(uint8 chr) const {
|
||||
@ -109,6 +106,7 @@ uint8 DraciFont::getCharWidth(uint8 chr) const {
|
||||
|
||||
/**
|
||||
* @brief Draw a char to a Graphics::Surface
|
||||
*
|
||||
* @param dst Pointer to the destination surface
|
||||
* @param chr Character to draw (ASCII value)
|
||||
* @param tx Horizontal offset on the surface
|
||||
|
Loading…
x
Reference in New Issue
Block a user