ref: dddf9688108d36a84898b825aa3d7f81e1eeffd7
parent: 03f797a267ac23520b6d46fa59bc5d0bf730ec69
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Aug 13 01:14:37 EDT 2019
Backend_SupportsSubpixelGlyph -> Backend_SupportsSubpixelGlyphs
--- a/src/Backends/Rendering.h
+++ b/src/Backends/Rendering.h
@@ -24,7 +24,7 @@
void Backend_UnlockSurface(Backend_Surface *surface);
void Backend_Blit(Backend_Surface *source_surface, const RECT *rect, Backend_Surface *destination_surface, long x, long y, BOOL colour_key);
void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned char red, unsigned char green, unsigned char blue);
-BOOL Backend_SupportsSubpixelGlyph(void);
+BOOL Backend_SupportsSubpixelGlyphs(void);
Backend_Glyph* Backend_LoadGlyph(const unsigned char *pixels, unsigned int width, unsigned int height, int pitch, unsigned char pixel_mode);
void Backend_UnloadGlyph(Backend_Glyph *glyph);
void Backend_DrawGlyph(Backend_Surface *surface, Backend_Glyph *glyph, long x, long y, const unsigned char *colours);
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -623,7 +623,7 @@
vertex_buffer_slot->vertices[1][2].vertex_coordinate.y = vertex_bottom;
}
-BOOL Backend_SupportsSubpixelGlyph(void)
+BOOL Backend_SupportsSubpixelGlyphs(void)
{
return TRUE;
}
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -137,7 +137,7 @@
SDL_FillRect(surface->sdlsurface, &destination_rect, SDL_MapRGB(surface->sdlsurface->format, red, green, blue));
}
-BOOL Backend_SupportsSubpixelGlyph(void)
+BOOL Backend_SupportsSubpixelGlyphs(void)
{
return FALSE; // SDL_Surfaces don't have per-component alpha
}
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -205,7 +205,7 @@
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
}
-BOOL Backend_SupportsSubpixelGlyph(void)
+BOOL Backend_SupportsSubpixelGlyphs(void)
{
return FALSE; // SDL_Textures don't have per-component alpha
}
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -255,7 +255,7 @@
}
}
-BOOL Backend_SupportsSubpixelGlyph(void)
+BOOL Backend_SupportsSubpixelGlyphs(void)
{
return TRUE; // It's a software renderer, baby
}
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1058,7 +1058,7 @@
FT_Init_FreeType(&font_object->library);
#ifndef DISABLE_FONT_ANTIALIASING
- font_object->lcd_mode = Backend_SupportsSubpixelGlyph() && FT_Library_SetLcdFilter(font_object->library, FT_LCD_FILTER_DEFAULT) != FT_Err_Unimplemented_Feature;
+ font_object->lcd_mode = Backend_SupportsSubpixelGlyphs() && FT_Library_SetLcdFilter(font_object->library, FT_LCD_FILTER_DEFAULT) != FT_Err_Unimplemented_Feature;
#endif
font_object->data = (unsigned char*)malloc(data_size);