mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-22 17:56:49 +02:00
Switch back to Cairo for drawing selection
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef DULCEPAN_H
|
||||
#define DULCEPAN_H
|
||||
|
||||
#include <pixman.h>
|
||||
#include <cairo.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <wayland-util.h>
|
||||
@@ -18,7 +18,8 @@ enum dp_status {
|
||||
|
||||
struct dp_buffer {
|
||||
struct wl_buffer *wl_buffer;
|
||||
pixman_image_t *image;
|
||||
cairo_t *cairo;
|
||||
cairo_surface_t *cairo_surface;
|
||||
void *data;
|
||||
size_t size;
|
||||
bool used;
|
||||
@@ -123,6 +124,7 @@ enum dp_file_format {
|
||||
};
|
||||
|
||||
struct dp_config {
|
||||
// RGBA, not premultiplied
|
||||
float unselected_color[4];
|
||||
float selected_color[4];
|
||||
float border_color[4];
|
||||
@@ -161,10 +163,6 @@ struct dp_state {
|
||||
enum dp_file_format output_format;
|
||||
|
||||
bool show_cursors;
|
||||
|
||||
pixman_image_t *unselected_fill_image;
|
||||
pixman_image_t *selected_fill_image;
|
||||
pixman_image_t *border_fill_image;
|
||||
};
|
||||
|
||||
void dp_config_load(struct dp_config *config, const char *user_path);
|
||||
|
||||
Reference in New Issue
Block a user