Mercurial > dwindows
comparison mac/dw.m @ 1442:02a329b2b0cd
Added groupbox perfomance improvement to Windows and OS/2 that was missed when importing from the Mac.
Only calculate the groupbox border size on the first pass.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 08 Dec 2011 21:58:02 +0000 |
parents | bde7ebced556 |
children | 0d4fdf646caf |
comparison
equal
deleted
inserted
replaced
1441:b9577d1f0411 | 1442:02a329b2b0cd |
---|---|
2426 | 2426 |
2427 /* Handle special groupbox case */ | 2427 /* Handle special groupbox case */ |
2428 if(thisbox->grouphwnd) | 2428 if(thisbox->grouphwnd) |
2429 { | 2429 { |
2430 /* Only calculate the size on the first pass... | 2430 /* Only calculate the size on the first pass... |
2431 * used the cached values on second. | 2431 * use the cached values on second. |
2432 */ | 2432 */ |
2433 if(pass == 1) | 2433 if(pass == 1) |
2434 { | 2434 { |
2435 DWGroupBox *groupbox = thisbox->grouphwnd; | 2435 DWGroupBox *groupbox = thisbox->grouphwnd; |
2436 NSSize borderSize = [groupbox borderSize]; | 2436 NSSize borderSize = [groupbox borderSize]; |