1. Bart van Strien
  2. love-experiments

Commits

Alex Szpakowski  committed 30378a2

Fixed love.graphics.getPointStyle

  • Participants
  • Parent commits 673d0ea
  • Branches default

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/wrap_Graphics.cpp

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