• Zhiyi Zhang's avatar
    light.msstyles: Use border fill background for progress parts. · 2960cf2e
    Zhiyi Zhang authored
    These parts only contain simple images that can be achieved with border fill backgrounds as well.
    So visually, this change is a no-op. The reason for using image file backgrounds is that I tend
    to use the same background type as the theme files for Windows. However, drawing border fill
    background is much more efficient.
    
    Pro Evolution Soccer 2008 demo is buggy and generates ~570,000 WM_PAINT messages for the progress
    control. On Windows, it's ~1,140,000 WM_PAINT messages. DrawThemeBackground() on Wine is 10x more
    expensive than that of Windows and I found little room for optimization. 60% of the time in
    DrawThemeBackground() is spend for CreateCompatibleDC() and other 30% for actually drawing. So I
    decided to change light.msstyles instead.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54728
    2960cf2e
Makefile.in 18.8 KB