From 1507bd1e65d86c3280f57e48cbd5f717ebfa657b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 25 Jun 2019 05:57:05 +0200 Subject: [PATCH] Fix a type --- programs/level.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/level.c b/programs/level.c index b303788..37409a6 100644 --- a/programs/level.c +++ b/programs/level.c @@ -64,7 +64,7 @@ static inline void setPixel(int x, int y, uint8_t red, uint8_t green, uint8_t bl pixels[y * S3L_RESOLUTION_X + x] = r | g | b; } -void sampleTxture(S3L_Unit u, S3L_Unit v, uint8_t *r, uint8_t *g, uint8_t *b) +void sampleTexture(S3L_Unit u, S3L_Unit v, uint8_t *r, uint8_t *g, uint8_t *b) { u = (u * LEVEL_TEXTURE_WIDTH) / S3L_FRACTIONS_PER_UNIT; v = (v * LEVEL_TEXTURE_HEIGHT) / S3L_FRACTIONS_PER_UNIT; @@ -149,7 +149,7 @@ void drawPixel(S3L_PixelInfo *p) uv[0] = S3L_interpolateBarycentric(uv0.x,uv1.x,uv2.x,p->barycentric); uv[1] = S3L_interpolateBarycentric(uv0.y,uv1.y,uv2.y,p->barycentric); - sampleTxture(uv[0],uv[1],&r,&g,&b); + sampleTexture(uv[0],uv[1],&r,&g,&b); #else switch (p->modelIndex) {