From 4862d956873401e647da34e7611924cb627a7230 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Mon, 17 Oct 2022 01:30:44 +0800 Subject: [PATCH] Deprecate love.graphics.setNewFont. --- src/modules/graphics/wrap_Graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index 83a649440..d3eb49432 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/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(L, -1); instance()->setFont(font);