From e16b5afa6d7f72825d580fd757fd067195d05ec1 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 1 Feb 2013 01:44:00 -0400 Subject: [PATCH] Fixed love.graphics.getPointStyle --- src/modules/graphics/opengl/wrap_Graphics.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index de249a90c..a4f941f5e 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -768,7 +768,10 @@ int w_getPointSize(lua_State *L) int w_getPointStyle(lua_State *L) { - lua_pushinteger(L, instance->getPointStyle()); + Graphics::PointStyle style = instance->getPointStyle(); + const char *str; + Graphics::getConstant(style, str); + lua_pushstring(L, str); return 1; }