[Scummvm-git-logs] scummvm master -> 00603b341dccc28167c2ca441d148c2935ff1f4d

dreammaster dreammaster at scummvm.org
Sat Jun 19 04:24:36 UTC 2021


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:
00603b341d AGS: Remove duplicate IAGSFontRenderer class definition


Commit: 00603b341dccc28167c2ca441d148c2935ff1f4d
    https://github.com/scummvm/scummvm/commit/00603b341dccc28167c2ca441d148c2935ff1f4d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-06-18T21:24:27-07:00

Commit Message:
AGS: Remove duplicate IAGSFontRenderer class definition

Changed paths:
    engines/ags/plugins/ags_plugin.h


diff --git a/engines/ags/plugins/ags_plugin.h b/engines/ags/plugins/ags_plugin.h
index 34ca0baf28..7b32498912 100644
--- a/engines/ags/plugins/ags_plugin.h
+++ b/engines/ags/plugins/ags_plugin.h
@@ -32,6 +32,7 @@
 #define AGS_PLUGINS_AGS_PLUGIN_H
 
 #include "ags/shared/core/types.h"
+#include "ags/shared/font/ags_font_renderer.h"
 #include "common/array.h"
 
 namespace AGS3 {
@@ -292,24 +293,6 @@ protected:
 	}
 };
 
-class IAGSFontRenderer {
-public:
-	virtual bool LoadFromDisk(int fontNumber, int fontSize) = 0;
-	virtual void FreeMemory(int fontNumber) = 0;
-	virtual bool SupportsExtendedCharacters(int fontNumber) = 0;
-	virtual int GetTextWidth(const char *text, int fontNumber) = 0;
-	virtual int GetTextHeight(const char *text, int fontNumber) = 0;
-	virtual void RenderText(const char *text, int fontNumber, BITMAP *destination, int x, int y, int colour) = 0;
-	virtual void AdjustYCoordinateForFont(int *ycoord, int fontNumber) = 0;
-	virtual void EnsureTextValidForFont(char *text, int fontNumber) = 0;
-protected:
-	IAGSFontRenderer() {
-	}
-	virtual ~IAGSFontRenderer() {
-	}
-};
-
-
 struct AGSRenderMatrixes {
 	float WorldMatrix[16];
 	float ViewMatrix[16];




More information about the Scummvm-git-logs mailing list