diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-03-16 19:26:58 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-03-20 22:04:53 +0400 |
commit | 48c4d307ec6c7a3fa75425ffd73bf9eef6bb61fb (patch) | |
tree | 80c9c8dd364b04e0bdae3ba92f649a48abe202d2 /src/refresh/sw/image.c | |
parent | 5b90200a5fb8facbb431c789f37495ed7a6e9c10 (diff) |
Use TURB_SIZE constant where appropriate.
Also force resampling of all turbulent textures to 64x64.
Diffstat (limited to 'src/refresh/sw/image.c')
-rw-r--r-- | src/refresh/sw/image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/refresh/sw/image.c b/src/refresh/sw/image.c index 58c8d3e..29a3a80 100644 --- a/src/refresh/sw/image.c +++ b/src/refresh/sw/image.c @@ -55,6 +55,11 @@ void IMG_Load(image_t *image, byte *pic, int width, int height) { int i, c, b; + if (image->flags & IF_TURBULENT) { + image->width = TURB_SIZE; + image->height = TURB_SIZE; + } + image->upload_width = width; image->upload_height = height; |