Skip to content

Commit

Permalink
fix gallery render clip
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Feb 3, 2025
1 parent 3db587b commit 6fcec50
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30565,7 +30565,9 @@ def render(self):
gui.update_on_drag = True

# Draw the background
sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_NONE)
ddt.rect((0, 0, window_size[0], gui.panelY), colours.top_panel_background)
sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_BLEND)

if prefs.shuffle_lock and not gui.compact_bar:
colour = [250, 250, 250, 255]
Expand Down Expand Up @@ -31533,7 +31535,9 @@ def render(self):
global clicked
global right_click

sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_NONE)
ddt.rect_a((0, window_size[1] - gui.panelBY), (window_size[0], gui.panelBY), colours.bottom_panel_colour)
sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_BLEND)

ddt.rect_a(self.seek_bar_position, self.seek_bar_size, colours.seek_bar_background)

Expand Down Expand Up @@ -32386,7 +32390,9 @@ def render(self):
global clicked
global right_click

sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_NONE)
ddt.rect_a((0, window_size[1] - gui.panelBY), (window_size[0], gui.panelBY), colours.bottom_panel_colour)
sdl3.SDL_SetRenderDrawBlendMode(renderer, sdl3.SDL_BLENDMODE_BLEND)

right_offset = 0
if gui.display_time_mode >= 2:
Expand Down Expand Up @@ -44083,7 +44089,7 @@ def drop_file(target):
colours.side_panel_background[3] = 80
colours.art_box[3] = 100
colours.window_frame[3] = 100
colours.bottom_panel_colour[3] = 190
colours.bottom_panel_colour[3] = 200
#colours.playlist_panel_background[3] = 220
#colours.playlist_box_background = [0, 0, 0, 100]

Expand Down Expand Up @@ -44306,6 +44312,8 @@ def drop_file(target):
w -= gui.lspw

x = window_size[0] - w
sx = x
sw = w
h = window_size[1] - gui.panelY - gui.panelBY

if not gui.show_playlist and inp.mouse_click:
Expand All @@ -44321,6 +44329,7 @@ def drop_file(target):

rect = [x, gui.panelY, w, h]
ddt.rect(rect, colours.gallery_background)

# ddt.rect_r(rect, [255, 0, 0, 200], True)

area_x = w + 38 * gui.scale
Expand Down Expand Up @@ -44982,6 +44991,9 @@ def drop_file(target):
break
render_pos += album_mode_art_size + album_v_gap




# POWER TAG BAR --------------

if gui.pt > 0: # gui.pt > 0 or (gui.power_bar is not None and len(gui.power_bar) > 1):
Expand Down Expand Up @@ -45106,6 +45118,7 @@ def drop_file(target):
logging.exception("Gallery render error!")
# END POWER BAR ------------------------


# End of gallery view
# --------------------------------------------------------------------------
# Main Playlist:
Expand Down

0 comments on commit 6fcec50

Please sign in to comment.