POV-Ray : Newsgroups : povray.beta-test : Quick summary for Linux-Beta 28, September 2008 : Re: Quick summary for Linux-Beta 28, September 2008 Server Time
28 Jul 2024 14:19:02 EDT (-0400)
  Re: Quick summary for Linux-Beta 28, September 2008  
From: Le Forgeron
Date: 18 Sep 2008 12:20:06
Message: <48d27fb6$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.