diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-26 19:09:12 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-26 19:09:12 -0400 |
commit | 9b9ee51b093bbb2f4a42dce9e4f0d34dcbef69ab (patch) | |
tree | 4835b667884bf8aba57eb063a4132fe02a470713 /examples/tablet.c | |
parent | cbcd99435fbc94b8bf0191ccdc4664de20d00e45 (diff) |
examples/tablet: Don't use new render API and old render API together
We're using both APIs at the same time.
Diffstat (limited to 'examples/tablet.c')
-rw-r--r-- | examples/tablet.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/tablet.c b/examples/tablet.c index 7ac81549..fc2094f5 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -107,12 +107,6 @@ static void output_frame_notify(struct wl_listener *listener, void *data) { float pad_height = sample->height_mm * scale; float left = width / 2.0f - pad_width / 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){ .box = { .x = left, |