From 7562d7b539d8013376de2cff494231ba307f4ee1 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 17 Nov 2021 01:15:13 +0000 Subject: Add sorting by run frequency. This implements a rofi-like run cache. Other smaller changes include simplification of resize logic now that there's only one surface. --- src/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/surface.c') diff --git a/src/surface.c b/src/surface.c index cbc6c94..8052d5e 100644 --- a/src/surface.c +++ b/src/surface.c @@ -44,8 +44,8 @@ void surface_draw( (double)surface->width / texture->width, (double)surface->height / texture->height ); - uint32_t width = (uint32_t)(scale * texture->width); - uint32_t height = (uint32_t)(scale * texture->height); + int32_t width = (int32_t)(scale * texture->width); + int32_t height = (int32_t)(scale * texture->height); int32_t x = -((int32_t)width - (int32_t)surface->width) / 2; int32_t y = -((int32_t)height - (int32_t)surface->height) / 2; -- cgit v1.2.3