Fixed: build interface border duplication
--HG-- branch : develop
This commit is contained in:
parent
5a1a167de9
commit
07d9107b6b
1 changed files with 9 additions and 0 deletions
|
@ -421,8 +421,17 @@ int main(int argc, char **argv)
|
||||||
NLMISC::CBitmap *tmp = new NLMISC::CBitmap;
|
NLMISC::CBitmap *tmp = new NLMISC::CBitmap;
|
||||||
tmp->resize(pBtmp->getWidth(), pBtmp->getHeight());
|
tmp->resize(pBtmp->getWidth(), pBtmp->getHeight());
|
||||||
tmp->blit(pBtmp, 0, 0);
|
tmp->blit(pBtmp, 0, 0);
|
||||||
|
// corners
|
||||||
tmp->resample(tmp->getWidth() + borderSize * 2, tmp->getHeight() + borderSize * 2);
|
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);
|
tmp->blit(pBtmp, borderSize, borderSize);
|
||||||
|
|
||||||
delete pBtmp;
|
delete pBtmp;
|
||||||
pBtmp = tmp;
|
pBtmp = tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue