Browse Source

Fix issue #158 by forcing the image origin to be upper left.

vrld 14 năm trước cách đây
mục cha
commit
c5eb50d0d5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/modules/image/devil/Image.cpp

+ 2 - 0
src/modules/image/devil/Image.cpp

@@ -34,6 +34,8 @@ namespace devil
 	Image::Image()
 	{
 		ilInit();
+		ilOriginFunc(IL_ORIGIN_UPPER_LEFT);
+		ilEnable(IL_ORIGIN_SET);
 	}
 
 	Image::~Image()