This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/video/cocoa/SDL_cocoavideo.m
|
@@ -193,7 +193,7 @@ |
|
|
SDL_FreeSurface(converted); |
|
|
|
|
|
/* Premultiply the alpha channel */ |
|
|
for (i = (converted->h * converted->w); i--; ) { |
|
|
for (i = (surface->h * surface->w); i--; ) { |
|
|
Uint8 alpha = pixels[3]; |
|
|
pixels[0] = (Uint8)(((Uint16)pixels[0] * alpha) / 255); |
|
|
pixels[1] = (Uint8)(((Uint16)pixels[1] * alpha) / 255); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.