mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 11:07:54 +08:00
PixmanBlt only works when source surface and destination surface are not same
This commit is contained in:
+2
-1
@@ -313,7 +313,8 @@ int GAL_CalculateBlit(GAL_Surface *surface)
|
||||
// have colorkey
|
||||
surface->map->sw_blit = GAL_SoftBlit;
|
||||
}
|
||||
else if (surface->pix_img && surface->map->dst->pix_img) {
|
||||
else if (surface->pix_img && surface->map->dst->pix_img &&
|
||||
surface != surface->map->dst) {
|
||||
surface->map->sw_blit = GAL_PixmanBlit;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user