瀏覽代碼

Deprecate love.graphics.setNewFont.

Miku AuahDark 3 年之前
父節點
當前提交
4862d95687
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/graphics/wrap_Graphics.cpp

+ 2 - 0
src/modules/graphics/wrap_Graphics.cpp

@@ -2335,6 +2335,8 @@ int w_getBackgroundColor(lua_State *L)
 
 int w_setNewFont(lua_State *L)
 {
+	luax_markdeprecated(L, 1, "love.graphics.setNewFont", API_FUNCTION, DEPRECATED_NO_REPLACEMENT, nullptr);
+
 	int ret = w_newFont(L);
 	Font *font = luax_checktype<Font>(L, -1);
 	instance()->setFont(font);