Changeset 3116

Show
Ignore:
Timestamp:
07/09/08 16:07:34 (5 years ago)
Author:
nopper
Message:

Fix to make correct shape on windows.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/UmitPlugins/higwidgets/higtooltips.py

    r3093 r3116  
    188188 
    189189            # Clear the bmp 
    190             cr.set_source_rgb(0, 0, 0) 
    191             cr.set_operator(cairo.OPERATOR_DEST_OUT) 
    192             cr.paint() 
    193  
    194             cr.set_operator(cairo.OPERATOR_OVER) 
    195             cr.set_source_rgba(0, 0, 0, 1) 
     190            cr.save() 
     191            cr.rectangle(0, 0, w, h) 
     192            cr.set_operator(cairo.OPERATOR_CLEAR) 
     193            cr.fill() 
     194            cr.restore() 
     195 
     196            cr.set_source_rgb(1, 1, 1) 
    196197        else: 
    197198            # Set the gradient 
     
    216217        cr.fill_preserve() 
    217218 
    218         if shaping: 
    219             cr.set_operator(cairo.OPERATOR_OVER) 
    220         else: 
     219        if not shaping: 
    221220            # Set the color for border 
    222221            cr.set_source_rgb( \