从调色板 (8bpp) 表面缩放的 SDL2 Blit 给出错误:不支持 Blit 组合 [英] SDL2 Blit Scaled from a palettized (8bpp) Surface gives error: Blit combination not supported

查看:57
本文介绍了从调色板 (8bpp) 表面缩放的 SDL2 Blit 给出错误:不支持 Blit 组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 8bpp 表面用于 NES 模拟器,因此可以方便地进行简单的调色板交换,而不必摆弄像素数据.
但是无论目标是 8bpp 还是 32bpp,从 8bpp 表面缩放的 Blitting 都会给出错误 Blit 组合不支持.
有什么建议可以让它发挥作用吗?

I'm using 8bpp surfaces for a NES emulator so it's convenient to do simple palette swaps instead of having to fiddle with the pixel data.
But Blitting Scaled from an 8bpp Surface gives the error Blit combination not supported regardless if the destination is 8bpp or 32bpp.
Any suggestion to make it work?

推荐答案

当然解决方案是从 8bpp 到 32bpp 的 Blitting,然后在 32bpp 表面之间进行 BlitScaled.

Of course the solution was Blitting from 8bpp to 32bpp and then doing BlitScaled between 32bpp surfaces.

这篇关于从调色板 (8bpp) 表面缩放的 SDL2 Blit 给出错误:不支持 Blit 组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆