From 07d9107b6bc2dc2578dda299395344d82c6ffe7e Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 30 Jan 2019 23:54:18 +0200 Subject: [PATCH] Fixed: build interface border duplication --HG-- branch : develop --- code/nel/tools/3d/build_interface/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/nel/tools/3d/build_interface/main.cpp b/code/nel/tools/3d/build_interface/main.cpp index ed7f220b5..2f0cc88bd 100644 --- a/code/nel/tools/3d/build_interface/main.cpp +++ b/code/nel/tools/3d/build_interface/main.cpp @@ -421,8 +421,17 @@ int main(int argc, char **argv) NLMISC::CBitmap *tmp = new NLMISC::CBitmap; tmp->resize(pBtmp->getWidth(), pBtmp->getHeight()); tmp->blit(pBtmp, 0, 0); + // corners tmp->resample(tmp->getWidth() + borderSize * 2, tmp->getHeight() + borderSize * 2); + // top, bottom + tmp->blit(pBtmp, borderSize, 0); + tmp->blit(pBtmp, borderSize, borderSize*2); + // left, right + tmp->blit(pBtmp, 0, borderSize); + tmp->blit(pBtmp, borderSize*2, borderSize); + // center tmp->blit(pBtmp, borderSize, borderSize); + delete pBtmp; pBtmp = tmp; }