|
![](/i/fill.gif) |
Le Thu, 18 Sep 2008 15:32:49 +0200, Nicolas Calimet a modifié des petits
morceaux de l'univers pour nous faire lire :
>> - To be able to use duma with m_textures.ini, -D must be used or a
>> crash
>> is generated for disp_sdl.cpp:573
>
> As a quick test, could you try wrapping this line with a pair of
> SDL_LockSurface(m_screen) / SDL_UnlockSurface(m_screen) commands?
>
> Thanks,
> - NC
Your words are my command.
Well, duma is far more happy on m_textures.ini with that code:
void UnixSDLDisplay::UpdateScreen(bool Force = false)
{
if (!m_valid)
return;
if (Force || m_PxCnt >= UpdateInterval)
{
SDL_LockSurface(m_screen);
SDL_BlitSurface(m_display, &m_update_rect,
m_screen, &m_update_rect);
SDL_UnlockSurface(m_screen);
SDL_UpdateRect(m_screen, m_update_rect.x,
m_update_rect.y, m_update_rect.w, m_update_rect.h);
m_PxCnt = 0;
}
}
*BUT*
the rendering window now is fully black, all the time.
(if SDL_BlitSurface is not in the locked section, duma is not happy;
no big difference to include UpdateRect or not)
The rendered picture is fine.
Post a reply to this message
|
![](/i/fill.gif) |