summaryrefslogtreecommitdiff
path: root/beos/scaffolding.cpp
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-07-08 19:23:55 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-07-08 19:23:55 +0100
commit3c818abaea53b61c15393d1aeaefd1eba52f4d5c (patch)
tree13704d81d7041a4cd4bc44414baf0de6045021db /beos/scaffolding.cpp
parente7e914b6242a17abebb84ecfc5f0b1facaac4e94 (diff)
parent0694f345daa509546d79f31be285987f43cc5be3 (diff)
downloadnetsurf-3c818abaea53b61c15393d1aeaefd1eba52f4d5c.tar.gz
netsurf-3c818abaea53b61c15393d1aeaefd1eba52f4d5c.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'beos/scaffolding.cpp')
-rw-r--r--beos/scaffolding.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp
index 35153b33d..0f87420a5 100644
--- a/beos/scaffolding.cpp
+++ b/beos/scaffolding.cpp
@@ -196,12 +196,11 @@ NSIconTextControl::NSIconTextControl(BRect frame, const char* name,
fIconBitmap(NULL)
{
BRect r(Bounds());
- BRect frame = r;
- frame.right = frame.left + ICON_WIDTH - 1;
- frame.bottom = frame.top + ICON_WIDTH - 1;
- frame.OffsetBy((int32)((r.IntegerHeight() - ICON_WIDTH + 3) / 2),
+ fIconFrame = r;
+ fIconFrame.right = fIconFrame.left + ICON_WIDTH - 1;
+ fIconFrame.bottom = fIconFrame.top + ICON_WIDTH - 1;
+ fIconFrame.OffsetBy((int32)((r.IntegerHeight() - ICON_WIDTH + 3) / 2),
(int32)((r.IntegerHeight() - ICON_WIDTH + 1) / 2));
- fIconFrame = frame;
FixupTextRect();
}