From dddf9688108d36a84898b825aa3d7f81e1eeffd7 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 13 Aug 2019 05:14:37 +0000 Subject: [PATCH] Backend_SupportsSubpixelGlyph -> Backend_SupportsSubpixelGlyphs --- src/Backends/Rendering.h | 2 +- src/Backends/Rendering/OpenGL3.cpp | 2 +- src/Backends/Rendering/SDLSurface.cpp | 2 +- src/Backends/Rendering/SDLTexture.cpp | 2 +- src/Backends/Rendering/Software.cpp | 2 +- src/Font.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Backends/Rendering.h b/src/Backends/Rendering.h index 82ebf184..a60f0f3c 100644 --- a/src/Backends/Rendering.h +++ b/src/Backends/Rendering.h @@ -24,7 +24,7 @@ unsigned char* Backend_LockSurface(Backend_Surface *surface, unsigned int *pitch 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); diff --git a/src/Backends/Rendering/OpenGL3.cpp b/src/Backends/Rendering/OpenGL3.cpp index 667507cc..fd40fa18 100644 --- a/src/Backends/Rendering/OpenGL3.cpp +++ b/src/Backends/Rendering/OpenGL3.cpp @@ -623,7 +623,7 @@ void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned cha vertex_buffer_slot->vertices[1][2].vertex_coordinate.y = vertex_bottom; } -BOOL Backend_SupportsSubpixelGlyph(void) +BOOL Backend_SupportsSubpixelGlyphs(void) { return TRUE; } diff --git a/src/Backends/Rendering/SDLSurface.cpp b/src/Backends/Rendering/SDLSurface.cpp index 86554777..cb5744c7 100644 --- a/src/Backends/Rendering/SDLSurface.cpp +++ b/src/Backends/Rendering/SDLSurface.cpp @@ -137,7 +137,7 @@ void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned cha 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 } diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index 90c31c83..801d6d68 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -205,7 +205,7 @@ void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned cha SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND); } -BOOL Backend_SupportsSubpixelGlyph(void) +BOOL Backend_SupportsSubpixelGlyphs(void) { return FALSE; // SDL_Textures don't have per-component alpha } diff --git a/src/Backends/Rendering/Software.cpp b/src/Backends/Rendering/Software.cpp index 32622a21..c19dbc51 100644 --- a/src/Backends/Rendering/Software.cpp +++ b/src/Backends/Rendering/Software.cpp @@ -255,7 +255,7 @@ void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned cha } } -BOOL Backend_SupportsSubpixelGlyph(void) +BOOL Backend_SupportsSubpixelGlyphs(void) { return TRUE; // It's a software renderer, baby } diff --git a/src/Font.cpp b/src/Font.cpp index 398a31ec..9e95d404 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -1058,7 +1058,7 @@ FontObject* LoadFontFromData(const unsigned char *data, size_t data_size, unsign 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);