Backend_SupportsSubpixelGlyph -> Backend_SupportsSubpixelGlyphs
This commit is contained in:
parent
03f797a267
commit
dddf968810
6 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ unsigned char* Backend_LockSurface(Backend_Surface *surface, unsigned int *pitch
|
||||||
void Backend_UnlockSurface(Backend_Surface *surface);
|
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_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);
|
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);
|
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_UnloadGlyph(Backend_Glyph *glyph);
|
||||||
void Backend_DrawGlyph(Backend_Surface *surface, Backend_Glyph *glyph, long x, long y, const unsigned char *colours);
|
void Backend_DrawGlyph(Backend_Surface *surface, Backend_Glyph *glyph, long x, long y, const unsigned char *colours);
|
||||||
|
|
|
@ -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;
|
vertex_buffer_slot->vertices[1][2].vertex_coordinate.y = vertex_bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL Backend_SupportsSubpixelGlyph(void)
|
BOOL Backend_SupportsSubpixelGlyphs(void)
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
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
|
return FALSE; // SDL_Surfaces don't have per-component alpha
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,7 +205,7 @@ void Backend_ColourFill(Backend_Surface *surface, const RECT *rect, unsigned cha
|
||||||
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
|
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL Backend_SupportsSubpixelGlyph(void)
|
BOOL Backend_SupportsSubpixelGlyphs(void)
|
||||||
{
|
{
|
||||||
return FALSE; // SDL_Textures don't have per-component alpha
|
return FALSE; // SDL_Textures don't have per-component alpha
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
return TRUE; // It's a software renderer, baby
|
||||||
}
|
}
|
||||||
|
|
|
@ -1058,7 +1058,7 @@ FontObject* LoadFontFromData(const unsigned char *data, size_t data_size, unsign
|
||||||
FT_Init_FreeType(&font_object->library);
|
FT_Init_FreeType(&font_object->library);
|
||||||
|
|
||||||
#ifndef DISABLE_FONT_ANTIALIASING
|
#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
|
#endif
|
||||||
|
|
||||||
font_object->data = (unsigned char*)malloc(data_size);
|
font_object->data = (unsigned char*)malloc(data_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue