Skip to content

Commit

Permalink
surface: Fix bad use of wlc_size_max
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Oct 21, 2016
1 parent f4ff049 commit 203eddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/types/surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ wlc_surface_attach_to_output(struct wlc_surface *surface, struct wlc_output *out
if (buffer)
size = buffer->size;

wlc_size_max(&size, &size, &(struct wlc_size){1, 1});
wlc_size_max(&size, &(struct wlc_size){1, 1}, &size);
size.w /= surface->commit.scale;
size.h /= surface->commit.scale;
surface->size = size;
Expand Down

0 comments on commit 203eddd

Please sign in to comment.