summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-03-08 19:52:02 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-03-08 19:52:02 +0000
commit95e14ab79254cdddf5eb25984b74e370d31ab0c2 (patch)
treeefd0e7d2632937504bbe4f67db760887750073b4 /src/resources/image.cpp
parent405c23831a4e1363f26f848215c8140f6d6d9f78 (diff)
downloadmana-client-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.gz
mana-client-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.bz2
mana-client-95e14ab79254cdddf5eb25984b74e370d31ab0c2.tar.xz
mana-client-95e14ab79254cdddf5eb25984b74e370d31ab0c2.zip
Some fixes for compiling with pedantic compiler settings and const char* checks.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 5176ec7a..f5082c60 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -158,11 +158,11 @@ Image* Image::load(void *buffer, unsigned int bufferSize,
int height = tmpImage->h;
int realWidth = 1, realHeight = 1;
- while (realWidth < width && realWidth < 2048) {
+ while (realWidth < width && realWidth < 1024) {
realWidth *= 2;
}
- while (realHeight < height && realHeight < 2048) {
+ while (realHeight < height && realHeight < 1024) {
realHeight *= 2;
}