SDL2 Blit Scaled from a palettized (8bpp) Surface gives error: Blit combination not supported

孤者浪人 提交于 2019-12-11 10:56:35

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/33850453/sdl2-blit-scaled-from-a-palettized-8bpp-surface-gives-error-blit-combination

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!