diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-12 13:42:40 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-12 13:42:40 +0000 |
| commit | bb7cdddd16ce099bb1e2af1aacf65aafbded30e3 (patch) | |
| tree | e034839aeadd4b6f87d54b60340a826f6577d503 /dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch | |
| parent | 6a48a55967facf4a43b1d00bfcdf8202df83dc95 (diff) | |
| download | baldeagleos-repo-bb7cdddd16ce099bb1e2af1aacf65aafbded30e3.tar.gz baldeagleos-repo-bb7cdddd16ce099bb1e2af1aacf65aafbded30e3.tar.xz baldeagleos-repo-bb7cdddd16ce099bb1e2af1aacf65aafbded30e3.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch')
| -rw-r--r-- | dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch b/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch new file mode 100644 index 000000000000..c94d354c576f --- /dev/null +++ b/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch @@ -0,0 +1,24 @@ +From 635048e81402f3dcc9719c060a67f33e6950649c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sun, 12 Jul 2020 08:18:06 +0200 +Subject: [PATCH] Fix NameError when calling SDL_SetColorKey() + +--- + sdl2/ext/image.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sdl2/ext/image.py b/sdl2/ext/image.py +index 1a413e1..49d897d 100644 +--- a/sdl2/ext/image.py ++++ b/sdl2/ext/image.py +@@ -154,6 +154,6 @@ def load_image(fname, enforce=None): + # If the image has a single transparent palette index, set + # that index as the color key to make blitting correct. + if 'transparency' in image.info and isinstance(image.info['transparency'], int): +- sdl2.SDL_SetColorKey(imgsurface, True, image.info['transparency']) ++ surface.SDL_SetColorKey(imgsurface, True, image.info['transparency']) + + return imgsurface +-- +2.27.0 + |
