GRAPHICS: MACGUI: Do not use bilinear filtering for MacText images

Improves speed in the Help Dialog
This commit is contained in:
StoneVerve
2026-03-17 03:24:39 -06:00
committed by Eugene Sandulenko
parent 09bf226e1a
commit 668daec6a1
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;
+1 -1
View File
@@ -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;