Explorar el Código

fix: countdown/text proport. scaling default 16

micha hace 2 años
padre
commit
97dc8d92a7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      vpu/vpu_live.py

+ 3 - 3
vpu/vpu_live.py

@@ -1373,7 +1373,7 @@ def draw_counter(COUNTER):
 
         k = "SIZE"
         if k in count:
-            csize = int(count[k])
+            csize = int(count[k]) #/60*p)
         if csize < 5:
             csize = 5
 
@@ -1390,7 +1390,7 @@ def draw_counter(COUNTER):
 
         ddim = cdim/255
         if "DIM" in count and count["DIM"] > 0:
-            tmp_font = pygame.font.SysFont("freemonobold",int(block[0]/100*csize))
+            tmp_font = pygame.font.SysFont("freemonobold",int(p/100*csize))
             rgb =(int(cr*ddim),int(cg*ddim),int(cb*ddim),cdim) 
             
             _sec = count["_SEC"]
@@ -1411,7 +1411,7 @@ def draw_counter(COUNTER):
             else:
                 fr = tmp_font.render("{}".format((count["_SEC"])) ,1, rgb)
 
-            fr_r = fr.get_rect(center=(60+cpan-(block[0]),60+ctilt+pm_wy))
+            fr_r = fr.get_rect(center=(40+cpan-(block[0]),60+ctilt+pm_wy))
             pygame.draw.rect(window,[0,0,0],fr_r)
             window.blit(fr,fr_r)