centerScanRect button to avoid blurring

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34693 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2012-02-01 22:07:41 +00:00
parent 9635fb6007
commit e631fa73be
2 changed files with 12 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<abstract>Theme management utility</abstract>
Copyright (C) 2008 Free Software Foundation, Inc.
Copyright (C) 2008-2012 Free Software Foundation, Inc.
Author: Richard Frith-Macdonald <rfm@gnu.org>
Date: 2007-2008
@ -200,6 +200,7 @@ static GSThemePanel *sharedPanel = nil;
frame = [button frame];
frame.origin.x = ([bottomView frame].size.width - frame.size.width) / 2;
frame.origin.y = ([bottomView frame].size.height - frame.size.height) / 2;
frame = [bottomView centerScanRect: frame];
[button setFrame: frame];
}
else