summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-08 09:53:40 -0700
committer3gg <3gg@shellblade.net>2026-03-08 09:53:40 -0700
commit604bd351b96f8d0a0ebee7aa6460a7c37260d119 (patch)
tree1183820ace90765b806fbbf48cd22132b2144f82 /src
parent38589c6fe955bca3a82242aa6a1b142261ee33f0 (diff)
Clean up
Diffstat (limited to 'src')
-rw-r--r--src/render.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/render.c b/src/render.c
index b1fd3e8..f716e1a 100644
--- a/src/render.c
+++ b/src/render.c
@@ -125,12 +125,12 @@ static void RenderGlyph(
125 for (int x = 0; (x < atlas->header.glyph_width) && 125 for (int x = 0; (x < atlas->header.glyph_width) &&
126 PenInSurface(state, glyph_width - 1, glyph_height - 1); 126 PenInSurface(state, glyph_width - 1, glyph_height - 1);
127 ++x, ++glyph) { 127 ++x, ++glyph) {
128 uiPixel* pixel = PixelXy(state, x, y);
129 if (*glyph > 0) { 128 if (*glyph > 0) {
130 pixel->r = *glyph; 129 uiPixel* pixel = PixelXy(state, x, y);
131 pixel->g = *glyph; 130 pixel->r = *glyph;
132 pixel->b = *glyph; 131 pixel->g = *glyph;
133 pixel->a = 255; 132 pixel->b = *glyph;
133 pixel->a = 255;
134 } 134 }
135 } 135 }
136 } 136 }
@@ -292,14 +292,12 @@ void uiRender(const uiFrame* frame, uiSurface* surface) {
292 292
293 RenderWidget( 293 RenderWidget(
294 &(RenderState){ 294 &(RenderState){
295 .surface = *surface, 295 .surface = *surface,
296 .subsurface = 296 .subsurface = (uiRect){.x = 0,
297 (uiRect){ 297 .y = 0,
298 .x = 0, 298 .width = surface->width,
299 .y = 0, 299 .height = surface->height},
300 .width = surface->width, 300 .pen = {.x = 0, .y = 0},
301 .height = surface->height},
302 .pen = {.x = 0, .y = 0},
303 }, 301 },
304 (const uiWidget*)frame); 302 (const uiWidget*)frame);
305} 303}