diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index c4d8e5526..4a166caab 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -492,7 +492,7 @@ namespace opengl return image; } - Quad * Graphics::newQuad(int x, int y, int w, int h, int sw, int sh) + Quad * Graphics::newQuad(float x, float y, float w, float h, float sw, float sh) { Quad::Viewport v; v.x = x; diff --git a/src/modules/graphics/opengl/Graphics.h b/src/modules/graphics/opengl/Graphics.h index 742802e43..2ade6ad3c 100644 --- a/src/modules/graphics/opengl/Graphics.h +++ b/src/modules/graphics/opengl/Graphics.h @@ -276,7 +276,7 @@ namespace opengl /** * Creates a Quad object. **/ - Quad * newQuad(int x, int y, int w, int h, int sw, int sh); + Quad * newQuad(float x, float y, float w, float h, float sw, float sh); /** * Creates a Font object. diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index ccc808b30..c7c435854 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -226,12 +226,12 @@ namespace opengl int w_newQuad(lua_State * L) { - int x = luaL_checknumber(L, 1); - int y = luaL_checknumber(L, 2); - int w = luaL_checknumber(L, 3); - int h = luaL_checknumber(L, 4); - int sw = luaL_checknumber(L, 5); - int sh = luaL_checknumber(L, 6); + float x = (float) luaL_checknumber(L, 1); + float y = (float) luaL_checknumber(L, 2); + float w = (float) luaL_checknumber(L, 3); + float h = (float) luaL_checknumber(L, 4); + float sw = (float) luaL_checknumber(L, 5); + float sh = (float) luaL_checknumber(L, 6); Quad * frame = instance->newQuad(x, y, w, h, sw, sh);