渲染结果似乎部分翻转了Miyoo mini
我正在尝试移植游戏freedink https://savannah.gnu.gnu.gnu.gnu.gnu.org/git//git/? group = freedink 到Miyoo Mini手持率。在第一次运行中,我看到了
经过一些调查后,我以为问题在 sdl_blitsurface 函数。将此代码更改
{
/* Copy splash to the background buffer so that D-Mod can
start an effect from it (e.g. Pilgrim Quest's burning
splash screen effect) */
SDL_BlitSurface(splash, NULL, GFX_lpDDSTwo, NULL);
SDL_FreeSurface(splash);
}
/* Copy splash screen (again) to the screen during loading time */
SDL_BlitSurface(GFX_lpDDSTwo, NULL, GFX_lpDDSBack, NULL);
flip_it();
}
为此后:
{
/* Copy splash to the background buffer so that D-Mod can
start an effect from it (e.g. Pilgrim Quest's burning
splash screen effect) */
SDL_BlitSurface(splash, NULL, GFX_lpDDSThird, NULL); //First copy to GFX_lpDDSThird
SDL_BlitSurface(GFX_lpDDSThird, NULL, GFX_lpDDSTwo, NULL); //And only then to GFX_lpDDSTwo
SDL_FreeSurface(splash);
}
/* Copy splash screen (again) to the screen during loading time */
SDL_BlitSurface(GFX_lpDDSTwo, NULL, GFX_lpDDSBack, NULL);
flip_it();
}
Splash屏幕也被翻转。我的问题很简单:这种行为是否已知?如何解决这个问题?
I'm trying to port game Freedink https://savannah.gnu.org/git/?group=freedink to Miyoo mini handheld. At the first run I saw this
After some investigations I assumed that the problem is in SDL_BlitSurface function. After I changed this code
{
/* Copy splash to the background buffer so that D-Mod can
start an effect from it (e.g. Pilgrim Quest's burning
splash screen effect) */
SDL_BlitSurface(splash, NULL, GFX_lpDDSTwo, NULL);
SDL_FreeSurface(splash);
}
/* Copy splash screen (again) to the screen during loading time */
SDL_BlitSurface(GFX_lpDDSTwo, NULL, GFX_lpDDSBack, NULL);
flip_it();
}
to this:
{
/* Copy splash to the background buffer so that D-Mod can
start an effect from it (e.g. Pilgrim Quest's burning
splash screen effect) */
SDL_BlitSurface(splash, NULL, GFX_lpDDSThird, NULL); //First copy to GFX_lpDDSThird
SDL_BlitSurface(GFX_lpDDSThird, NULL, GFX_lpDDSTwo, NULL); //And only then to GFX_lpDDSTwo
SDL_FreeSurface(splash);
}
/* Copy splash screen (again) to the screen during loading time */
SDL_BlitSurface(GFX_lpDDSTwo, NULL, GFX_lpDDSBack, NULL);
flip_it();
}
splash screen also become flipped. My question is simple: is this behavior known and how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论