mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
examples/tablet: Don't use new render API and old render API together
We're using both APIs at the same time.
This commit is contained in:
parent
cbcd99435f
commit
9b9ee51b09
1 changed files with 0 additions and 6 deletions
|
@ -107,12 +107,6 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
||||||
float pad_height = sample->height_mm * scale;
|
float pad_height = sample->height_mm * scale;
|
||||||
float left = width / 2.0f - pad_width / 2.0f;
|
float left = width / 2.0f - pad_width / 2.0f;
|
||||||
float top = height / 2.0f - pad_height / 2.0f;
|
float top = height / 2.0f - pad_height / 2.0f;
|
||||||
const struct wlr_box box = {
|
|
||||||
.x = left, .y = top,
|
|
||||||
.width = pad_width, .height = pad_height,
|
|
||||||
};
|
|
||||||
wlr_render_rect(sample->renderer, &box, sample->pad_color,
|
|
||||||
wlr_output->transform_matrix);
|
|
||||||
wlr_render_pass_add_rect(pass, &(struct wlr_render_rect_options){
|
wlr_render_pass_add_rect(pass, &(struct wlr_render_rect_options){
|
||||||
.box = {
|
.box = {
|
||||||
.x = left,
|
.x = left,
|
||||||
|
|
Loading…
Reference in a new issue