Skip to content

Commit

Permalink
Some formatting issues crept in
Browse files Browse the repository at this point in the history
  • Loading branch information
illume committed Dec 24, 2021
1 parent 301aa74 commit 9d53d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src_c/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ chop(SDL_Surface *src, int x, int y, int width, int height)
dst = newsurf_fromsurf(src, dstwidth, dstheight);
if (!dst)
return NULL;

Py_BEGIN_ALLOW_THREADS;
SDL_LockSurface(dst);
srcrow = (char *)src->pixels;
Expand Down
7 changes: 2 additions & 5 deletions test/display_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,15 +487,12 @@ def test_set_gamma(self):
self.assertEqual(pygame.display.set_gamma(gamma), True)

@unittest.skipIf(
os.environ.get("SDL_VIDEODRIVER") == "dummy",
"Needs a not dummy videodriver"
os.environ.get("SDL_VIDEODRIVER") == "dummy", "Needs a not dummy videodriver"
)
def test_set_gamma__tuple(self):
pygame.display.set_mode((1, 1))

gammas = [(0.5, 0.5, 0.5),
(1.0, 1.0, 1.0),
(0.25, 0.33, 0.44)]
gammas = [(0.5, 0.5, 0.5), (1.0, 1.0, 1.0), (0.25, 0.33, 0.44)]
for r, g, b in gammas:
with self.subTest(r=r, g=g, b=b):
self.assertEqual(pygame.display.set_gamma(r, g, b), True)
Expand Down

0 comments on commit 9d53d5a

Please sign in to comment.