- remove obsolete define SCALE2RES_DEFINED

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-08-25 21:39:33 +02:00
committed by Thilo Graf
parent 59b9a11693
commit cbd6e4f1f6
2 changed files with 0 additions and 7 deletions

View File

@@ -290,8 +290,6 @@ class CFrameBuffer : public sigc::trackable
virtual void blitBox2FB(const fb_pixel_t* boxBuf, const uint32_t& width, const uint32_t& height, const uint32_t& xoff, const uint32_t& yoff);
virtual void mark(int x, int y, int dx, int dy);
/* Remove this when pu/fb-setmode branch is merged to master */
#define SCALE2RES_DEFINED
virtual int scale2Res(int size) { return size; };
virtual bool fullHdAvailable() { return false; };
virtual void setOsdResolutions();

View File

@@ -1391,12 +1391,7 @@ int CLuaInstance::scale2Res(lua_State *L)
int value, ret;
value = luaL_checkint(L, 2);
/* Remove this when pu/fb-setmode branch is merged to master */
#ifdef SCALE2RES_DEFINED
ret = CFrameBuffer::getInstance()->scale2Res(value);
#else
ret = value;
#endif
lua_pushinteger(L, ret);
return 1;
}