mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
GRAPHICS: MACGUI: Do not use bilinear filtering for MacText images
Improves speed in the Help Dialog
This commit is contained in:
committed by
Eugene Sandulenko
parent
09bf226e1a
commit
668daec6a1
@@ -691,7 +691,9 @@ void MacTextCanvas::render(int from, int to, ManagedSurface *target, uint32 fill
|
||||
|
||||
for (int i = myFrom; i != myTo; i += delta) {
|
||||
if (!_text[i].picfname.empty()) {
|
||||
_imageArchive.setFiltering(false);
|
||||
const Surface *image = _imageArchive.getImageSurface(_text[i].picfname, _text[i].charwidth, _text[i].height);
|
||||
_imageArchive.setFiltering(true);
|
||||
|
||||
if (image) {
|
||||
int xOffset = (_text[i].width - _text[i].charwidth) / 2;
|
||||
|
||||
@@ -950,7 +950,7 @@ void MacText::draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int
|
||||
if (_canvas._textShadow)
|
||||
g->blitFrom(*_canvas._shadowSurface, Common::Rect(MIN<int>(_canvas._surface->w, x), MIN<int>(_canvas._surface->h, y), MIN<int>(_canvas._surface->w, x + w), MIN<int>(_canvas._surface->h, y + h)), Common::Point(xoff + _canvas._textShadow, yoff + _canvas._textShadow));
|
||||
|
||||
g->transBlitFrom(*_canvas._surface, Common::Rect(MIN<int>(_canvas._surface->w, x), MIN<int>(_canvas._surface->h, y), MIN<int>(_canvas._surface->w, x + w), MIN<int>(_canvas._surface->h, y + h)), Common::Point(xoff, yoff), _canvas._tbgcolor);
|
||||
g->simpleBlitFrom(*_canvas._surface, Common::Rect(MIN<int>(_canvas._surface->w, x), MIN<int>(_canvas._surface->h, y), MIN<int>(_canvas._surface->w, x + w), MIN<int>(_canvas._surface->h, y + h)), Common::Point(xoff, yoff));
|
||||
|
||||
if (_scrollBar && _scrollBorder.hasBorder(kWindowBorderScrollbar)) {
|
||||
uint32 transcolor = (_wm->_pixelformat.bytesPerPixel == 1) ? _wm->_colorGreen : 0;
|
||||
|
||||
Reference in New Issue
Block a user