Browse Source

Fixed love.graphics.getPointStyle

Alex Szpakowski 12 years ago
parent
commit
e16b5afa6d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 4 - 1
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;
 }