Skip to content
Snippets Groups Projects

BIG flow3r

Merged rahix requested to merge rahix/big-flow3r into main
2 unresolved threads
+ 3
3
@@ -23,7 +23,7 @@ simpath = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
bgpath = os.path.join(simpath, "background.png")
background = pygame.image.load(bgpath)
OLED_SIZE = screen_h // 2 if FULL_SCREEN else 240
OLED_SIZE = 240 if FULL_SCREEN else 240
class Input:
@@ -414,9 +414,9 @@ class Simulation:
center_x = screen_w // 2
center_y = screen_h // 2
if FULL_SCREEN:
off_x = center_x - (screen_h // 2)
off_x = center_x - (screen_h * 1.1042 // 2)
off_y = center_y - (screen_h // 2)
new = pygame.transform.scale(self._oled_surface, (screen_h, screen_h))
new = pygame.transform.scale(self._oled_surface, (screen_h * 1.1042, screen_h))
full.blit(new, (off_x, off_y))
else:
off_x = center_x - (OLED_SIZE // 2)
Loading