渲染结果似乎部分翻转了Miyoo mini

发布于 2025-02-12 11:47:25 字数 1718 浏览 1 评论 0原文

我正在尝试移植游戏freedink https://savannah.gnu.gnu.gnu.gnu.gnu.org/git//git/? group = freedink 到Miyoo Mini手持率。在第一次运行中,我看到了

  1. splash屏幕
  2. in da house:stats nes nats ney还可以
  3. 房子倒塌了

经过一些调查后,我以为问题在 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

  1. Splash screen is ok
  2. In da house: stats is ok but homies are flipped.
  3. The house collapsed

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文