mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
NEVERHOOD: Allocate more space for font surface
NHC-based Russian translation has extra unused space in the sprite. This causes the code to skip drawing sprite on the surface altogether. The simplest solution is to simply allocate a bit more with only downside is a small increase in memory footprint
This commit is contained in:
parent
f4da2d054a
commit
ffdf90df45
@ -151,7 +151,7 @@ void ShadowSurface::draw() {
|
||||
// FontSurface
|
||||
|
||||
FontSurface::FontSurface(NeverhoodEngine *vm, NPointArray *tracking, uint charsPerRow, uint16 numRows, byte firstChar, uint16 charWidth, uint16 charHeight)
|
||||
: BaseSurface(vm, 0, charWidth * charsPerRow, charHeight * numRows, "font"), _charsPerRow(charsPerRow), _numRows(numRows),
|
||||
: BaseSurface(vm, 0, charWidth * charsPerRow, charHeight * numRows + 4, "font"), _charsPerRow(charsPerRow), _numRows(numRows),
|
||||
_firstChar(firstChar), _charWidth(charWidth), _charHeight(charHeight), _tracking(nullptr) {
|
||||
|
||||
_tracking = new NPointArray();
|
||||
@ -160,7 +160,7 @@ FontSurface::FontSurface(NeverhoodEngine *vm, NPointArray *tracking, uint charsP
|
||||
}
|
||||
|
||||
FontSurface::FontSurface(NeverhoodEngine *vm, uint32 fileHash, uint charsPerRow, uint16 numRows, byte firstChar, uint16 charWidth, uint16 charHeight)
|
||||
: BaseSurface(vm, 0, charWidth * charsPerRow, charHeight * numRows, "font"), _charsPerRow(charsPerRow), _numRows(numRows),
|
||||
: BaseSurface(vm, 0, charWidth * charsPerRow, charHeight * numRows + 4, "font"), _charsPerRow(charsPerRow), _numRows(numRows),
|
||||
_firstChar(firstChar), _charWidth(charWidth), _charHeight(charHeight), _tracking(nullptr) {
|
||||
|
||||
SpriteResource fontSpriteResource(_vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user