[Scummvm-git-logs] scummvm master -> c674de750d96f456c14880138903194b48248437

digitall noreply at scummvm.org
Sun Jul 9 02:54:23 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:
c674de750d GRAPHICS: Remove Unused Variables Causing GCC Warnings from BDF Font Code


Commit: c674de750d96f456c14880138903194b48248437
    https://github.com/scummvm/scummvm/commit/c674de750d96f456c14880138903194b48248437
Author: D G Turner (digitall at scummvm.org)
Date: 2023-07-09T03:53:44+01:00

Commit Message:
GRAPHICS: Remove Unused Variables Causing GCC Warnings from BDF Font Code

Changed paths:
    graphics/fonts/bdf.cpp


diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp
index 6caf60e153e..cb77d3688b5 100644
--- a/graphics/fonts/bdf.cpp
+++ b/graphics/fonts/bdf.cpp
@@ -773,9 +773,6 @@ BdfFont *BdfFont::scaleFont(const BdfFont *src, int newSize) {
 		return nullptr;
 	}
 
-	// This is approximate and may not be ideal for all fonts!
-	const int scaleCenterYRelativeToBaseline = -1;
-
 	Graphics::Surface srcSurf;
 	srcSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2, newSize * 2), PixelFormat::createFormatCLUT8());
 	int dstGraySize = newSize * 20 * newSize;
@@ -854,7 +851,6 @@ BdfFont *BdfFont::scaleFont(const BdfFont *src, int newSize) {
 		int ccc = 'L';
 #endif
 		if (src->_data.bitmaps[i]) {
-			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