← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2275: Fix menu separators on Win 7

 

------------------------------------------------------------
revno: 2275
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-10-29 17:40:14 +0200
message:
  Fix menu separators on Win 7
modified:
  changelog.txt
  dwt/src/widgets/Menu.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 'changelog.txt'
--- changelog.txt	2010-10-28 22:43:23 +0000
+++ changelog.txt	2010-10-29 15:40:14 +0000
@@ -23,6 +23,7 @@
 * Fix some wrong menu fonts (poy)
 * Separate IP and Country columns in users and connections lists (thanks iceman50)
 * Support taskbar thumbnails and "Aero Peek" live previews on Win 7 (poy)
+* Fix menu separators on Win 7 (poy)
 
 -- 0.770 2010-07-05 --
 * [L#550300] Catch more potential file corruptions (thanks bigmuscle)

=== modified file 'dwt/src/widgets/Menu.cpp'
--- dwt/src/widgets/Menu.cpp	2010-09-08 15:35:43 +0000
+++ dwt/src/widgets/Menu.cpp	2010-10-29 15:40:14 +0000
@@ -553,7 +553,6 @@
 		if(theme) {
 			Point pt;
 			if(theme.getPartSize(canvas, MENU_POPUPSEPARATOR, 0, pt)) {
-				rectangle.size.x = std::min(rectangle.size.x, pt.x);
 				rectangle.size.y = std::min(rectangle.size.y, pt.y);
 			}
 			theme.drawBackground(canvas, MENU_POPUPSEPARATOR, 0, rectangle, false);