mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 10:00:36 +00:00
parent
e0f46f23b4
commit
83366fa9b8
|
@ -709,7 +709,7 @@ static void from_cairo_format(uint32_t & c)
|
|||
c = (static_cast<uint32_t>(a) << 24) | (static_cast<uint32_t>(r) << 16) | (static_cast<uint32_t>(g) << 8) | static_cast<uint32_t>(b);
|
||||
}
|
||||
|
||||
void pango_text::render(PangoLayout& layout, const SDL_Rect& viewport, const unsigned stride)
|
||||
void pango_text::render(PangoLayout& layout, const SDL_Rect& viewport)
|
||||
{
|
||||
uint8_t* buffer = &surface_buffer_[0];
|
||||
|
||||
|
@ -794,7 +794,7 @@ surface pango_text::create_surface(const SDL_Rect& viewport)
|
|||
// Try rendering the whole text in one go. If this throws a length_error
|
||||
// then leave it to the caller to handle; one reason it may throw is that
|
||||
// cairo surfaces are limited to approximately 2**15 pixels in height.
|
||||
render(*layout_, viewport, stride);
|
||||
render(*layout_, viewport);
|
||||
|
||||
// The cairo surface is in CAIRO_FORMAT_ARGB32 which uses
|
||||
// pre-multiplied alpha. SDL doesn't use that so the pixels need to be
|
||||
|
|
|
@ -454,7 +454,7 @@ private:
|
|||
* This is part of create_surface(viewport). The separation is a legacy
|
||||
* from workarounds to the size limits of cairo_surface_t.
|
||||
*/
|
||||
void render(PangoLayout& layout, const SDL_Rect& viewport, const unsigned stride);
|
||||
void render(PangoLayout& layout, const SDL_Rect& viewport);
|
||||
|
||||
/**
|
||||
* Buffer to store the image on.
|
||||
|
|
Loading…
Reference in New Issue
Block a user