mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src/{common/font,theme}.c: Switch to cairo helpers
This commit is contained in:
parent
36b2a93a69
commit
127a9c7be4
2 changed files with 5 additions and 9 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <wlr/util/box.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/font.h"
|
||||
#include "common/graphic-helpers.h"
|
||||
#include "labwc.h"
|
||||
#include "buffer.h"
|
||||
|
||||
|
|
@ -99,7 +100,7 @@ font_buffer_create(struct lab_data_buffer **buffer, int max_width,
|
|||
cairo_t *cairo = (*buffer)->cairo;
|
||||
cairo_surface_t *surf = cairo_get_target(cairo);
|
||||
|
||||
cairo_set_source_rgba(cairo, color[0], color[1], color[2], color[3]);
|
||||
set_cairo_color(cairo, color);
|
||||
cairo_move_to(cairo, 0, 0);
|
||||
|
||||
PangoLayout *layout = pango_cairo_create_layout(cairo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue