reset scores; fast blit temporary code; pgfw temp local location

This commit is contained in:
admin 2022-01-05 10:17:34 -05:00
parent f8064c4d0b
commit 6c375afe34
3 changed files with 15 additions and 13 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "lib/pgfw"] [submodule "lib/pgfw"]
path = lib/pgfw path = lib/pgfw
url = http://git.shampoo.ooo/pgfw url = /home/pi/projects/scrapeboard_copy/lib/pgfw

4
NS.py
View File

@ -427,10 +427,14 @@ class Video(Sprite):
frame = smoothscale( frame = smoothscale(
fromstring(self.gif.convert("RGBA").tobytes(), self.gif.size, "RGBA"), fromstring(self.gif.convert("RGBA").tobytes(), self.gif.size, "RGBA"),
(self.mask.get_width(), int(self.gif.width * self.gif.height / self.mask.get_width()))) (self.mask.get_width(), int(self.gif.width * self.gif.height / self.mask.get_width())))
# frame = scale(
# fromstring(self.gif.convert("RGBA").tobytes(), self.gif.size, "RGBA"),
# (self.mask.get_width(), int(self.gif.width * self.gif.height / self.mask.get_width())))
copy = self.mask.copy() copy = self.mask.copy()
rect = frame.get_rect() rect = frame.get_rect()
rect.bottom = copy.get_rect().bottom rect.bottom = copy.get_rect().bottom
copy.blit(frame, rect, None, BLEND_RGBA_MIN) copy.blit(frame, rect, None, BLEND_RGBA_MIN)
# copy.blit(frame, rect)
self.clear_frames() self.clear_frames()
self.add_frame(copy) self.add_frame(copy)

View File

@ -8,15 +8,13 @@
5999999 5999999
5999999 5999999
5999999 5999999
178557 242000
242121 242000
236951 242000
234102 242000
171204 242000
256769 242000
312561 242000
173960 242000
237842 242000
171298 242000
198296
152352