linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #05030
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2747: fix transfer bars
------------------------------------------------------------
revno: 2747
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sun 2011-12-25 17:46:20 +0100
message:
fix transfer bars
modified:
win32/TransferView.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/TransferView.cpp'
--- win32/TransferView.cpp 2011-12-23 16:21:08 +0000
+++ win32/TransferView.cpp 2011-12-25 16:46:20 +0000
@@ -345,9 +345,9 @@
auto selectPen(canvas.select(pen));
// "Finished" part
- rc.size.x = (int) (rc.width() * pos);
+ rc.size.x *= pos;
- canvas.rectangle(rc.left(), rc.top(), rc.right(), rc.bottom());
+ canvas.rectangle(rc);
}
textRect = rc;
@@ -365,7 +365,7 @@
// draw status text
- canvas.setBkMode(true);
+ auto bkMode(canvas.setBkMode(true));
auto& font = download ? WinUtil::downloadFont : WinUtil::uploadFont;
if(!font.get()) {
font = WinUtil::font;
@@ -373,6 +373,7 @@
auto selectFont(canvas.select(*font));
textRect.pos.x += 6;
+ textRect.size.x -= 6;
long left = textRect.left();