From 6d61375cc72bad5c569d25c253adca4e3701dd27 Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Mon, 9 Mar 2015 09:32:11 -0400 Subject: Clean scaling pre-filter for formspec/HUD. --- src/client/tile.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/client/tile.h') diff --git a/src/client/tile.h b/src/client/tile.h index eadfdc2a5..38f8bb623 100644 --- a/src/client/tile.h +++ b/src/client/tile.h @@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "threads.h" #include #include +#include "util/numeric.h" class IGameDef; @@ -135,21 +136,6 @@ public: IWritableTextureSource* createTextureSource(IrrlichtDevice *device); #ifdef __ANDROID__ -/** - * @param size get next npot2 value - * @return npot2 value - */ -inline unsigned int npot2(unsigned int size) -{ - if (size == 0) return 0; - unsigned int npot = 1; - - while ((size >>= 1) > 0) { - npot <<= 1; - } - return npot; -} - video::IImage * Align2Npot2(video::IImage * image, video::IVideoDriver* driver); #endif -- cgit v1.2.3