Changeset d0e6e53781813e3f399ff2ba234e5a8f70561883

Show
Ignore:
Timestamp:
02/25/09 02:13:22 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
b5fbe157fca9672b68eebd884b5e4f2b7e2c30bf
Parents:
f552909cbf0795a70dad4a132351b1e66b3dd6a3
git-committer:
Lincoln de Sousa <lincoln@…> (02/25/09 02:13:22)
Message:

Making opacity scale work properly when using rgba

The scale was inverted when using rgba transparency.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    raa8deb2 rd0e6e53  
    269269            i.set_background_saturation(opacity / 100.0) 
    270270            if self.guake.has_argb: 
    271                 i.set_opacity(int(opacity / 100.0 * 65535)) 
     271                i.set_opacity(65535 / 100 * abs(opacity - 100)) 
    272272 
    273273    def backspace_changed(self, client, connection_id, entry, data):