Skip to content

Commit

Permalink
oops, wrong method altered somehow before pushing!
Browse files Browse the repository at this point in the history
  • Loading branch information
paddywwoof committed Aug 21, 2024
1 parent b9dca96 commit 69402a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/picframe/viewer_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ def reset_name_tm(self, pic=None, paused=None, side=0, pair=False):

def set_brightness(self, val):
self.__slide.unif[55] = val # take immediate effect

def get_brightness(self):
return round(self.__slide.unif[55], 2) # this will still give 32/64 bit differences sometimes, as will the float(format()) system # noqa: E501
if self.__clock_overlay: # will be set to None if not text
self.__clock_overlay.sprite.set_alpha(val)
if self.__image_overlay:
Expand All @@ -190,6 +187,9 @@ def get_brightness(self):
if txt:
txt.sprite.set_alpha(val)

def get_brightness(self):
return round(self.__slide.unif[55], 2) # this will still give 32/64 bit differences sometimes, as will the float(format()) system # noqa: E501

def set_matting_images(self, val): # needs to cope with "true", "ON", 0, "0.2" etc.
try:
float_val = float(val)
Expand Down

0 comments on commit 69402a2

Please sign in to comment.