mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
render: make wlr_renderer_clear take a float[4] for the color
This commit is contained in:
parent
402587ed65
commit
ddb1779f9f
9 changed files with 13 additions and 17 deletions
|
|
@ -102,7 +102,7 @@ static void handle_output_frame(struct output_state *output,
|
|||
|
||||
wlr_output_make_current(wlr_output, NULL);
|
||||
wlr_renderer_begin(sample->renderer, wlr_output);
|
||||
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
|
||||
wlr_renderer_clear(sample->renderer, &(float[]){0.25f, 0.25f, 0.25f, 1});
|
||||
|
||||
animate_cat(sample, output->output);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
|
||||
wlr_output_make_current(wlr_output, NULL);
|
||||
wlr_renderer_begin(sample->renderer, wlr_output);
|
||||
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
|
||||
wlr_renderer_clear(sample->renderer, &(float[]){0.25f, 0.25f, 0.25f, 1});
|
||||
|
||||
float matrix[16];
|
||||
for (int y = -128 + (int)odata->y_offs; y < height; y += 128) {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
|
||||
wlr_output_make_current(wlr_output, NULL);
|
||||
wlr_renderer_begin(sample->renderer, wlr_output);
|
||||
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
|
||||
wlr_renderer_clear(sample->renderer, &(float[]){0.25f, 0.25f, 0.25f, 1});
|
||||
|
||||
float matrix[16], view[16];
|
||||
float distance = 0.8f * (1 - sample->distance);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
|
||||
wlr_output_make_current(wlr_output, NULL);
|
||||
wlr_renderer_begin(sample->renderer, wlr_output);
|
||||
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
|
||||
wlr_renderer_clear(sample->renderer, &(float[]){0.25f, 0.25f, 0.25f, 1});
|
||||
|
||||
float matrix[16];
|
||||
struct touch_point *p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue