Commits

Alex Szpakowski committed 30378a2

Fixed love.graphics.getPointStyle

  • Participants
  • Parent commits 673d0ea

Comments (0)

Files changed (1)

src/modules/graphics/opengl/wrap_Graphics.cpp

 
 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;
 }