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:21:33 EDT (-0400)
  Re: Quick summary for Linux-Beta 28, September 2008  
From: Nicolas Calimet
Date: 22 Sep 2008 08:32:18
Message: <48d79052$1@news.povray.org>
>                         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);

	Maybe the following will be better (for a quick test only -- best is
to properly deal with surface locking in all cases):

if (SDL_LockSurface(m_screen) == 0) {
   SDL_BlitSurface(m_display, &m_update_rect, m_screen, &m_update_rect);
   SDL_UpdateRect(m_screen, m_update_rect.x, m_update_rect.y, m_update_rect.w,
m_update_rect.h);
   SDL_UnlockSurface(m_screen);
}

	Thanks for doing those tests  :)
	- NC


Post a reply to this message

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