summaryrefslogtreecommitdiff
path: root/src/image.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 17:16:22 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 17:16:22 +0100
commit28b00896a8cb94663a3d35313ee7d771d4af11e0 (patch)
tree47ac8ff198b5ad9264263914b647ef5da620eefc /src/image.cpp
parentb7d17bdf8c0f1a4118709fbc5162463afb48b5c8 (diff)
use cstdint types
Diffstat (limited to 'src/image.cpp')
-rw-r--r--src/image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image.cpp b/src/image.cpp
index 238232e..6f87eda 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -11,7 +11,7 @@ ts_image img_folder;
ts_image img_drop;
// Simple helper function to load an image into a OpenGL texture with common settings
-static bool _ts_load_texture(unsigned char* data, size_t size, GLuint* out_texture, int* out_width, int* out_height)
+static bool _ts_load_texture(unsigned char* data, size_t size, GLuint* out_texture, uint32_t* out_width, uint32_t* out_height)
{
// Load from file
int image_width = 0;
@@ -46,8 +46,8 @@ static bool _ts_load_texture(unsigned char* data, size_t size, GLuint* out_textu
}
static ts_image _ts_load_image(unsigned char* data, size_t size) {
- int w = 0;
- int h = 0;
+ uint32_t w = 0;
+ uint32_t h = 0;
GLuint id = 0;
_ts_load_texture(data, size, &id, &w, &h);