[Scummvm-git-logs] scummvm master -> 8c5c3f6eccb99e0b82c7049d4a11c2fca2028df3

sev- noreply at scummvm.org
Tue Jun 27 11:57:29 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8c5c3f6ecc GRAPHICS: Lower graylevel for scaled BDF fonts


Commit: 8c5c3f6eccb99e0b82c7049d4a11c2fca2028df3
    https://github.com/scummvm/scummvm/commit/8c5c3f6eccb99e0b82c7049d4a11c2fca2028df3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-06-27T13:56:16+02:00

Commit Message:
GRAPHICS: Lower graylevel for scaled BDF fonts

This fixes higher resolution OpenGL GUI

Changed paths:
    graphics/fonts/bdf.cpp


diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp
index 69d1d3378ec..aa64354e543 100644
--- a/graphics/fonts/bdf.cpp
+++ b/graphics/fonts/bdf.cpp
@@ -805,7 +805,7 @@ BdfFont *BdfFont::scaleFont(const BdfFont *src, int newSize) {
 		int ccc = 'd';
 #endif
 		if (src->_data.bitmaps[i]) {
-			int grayLevel = box.height * box.width / 3;
+			int grayLevel = 10; //box.height * box.width / 3;
 			int dstPitch = (box.width + 7) / 8 ;
 			const int bytes = dstPitch * box.height;
 			bitmaps[i] = new byte[bytes + 1];




More information about the Scummvm-git-logs mailing list