On Mon, May 24, 2010 at 06:40:42PM +0000, Ash wrote:
> Greetings,
> I finally managed to update to latest version of Agar,
> and encountered this problem:
> I used to load a bitmap, create a surface, then make it visible via pixmap. 
> The 
> picture would be modified, and pixmap updated, by calling 
> AG_PixmapUpdateCurrentSurface (I use sdl and opengl). Now calling 
> AG_PixmapUpdateCurrentSurface doesn't change a thing. Is it possible?

There hasn't been any changes to the Pixmap widget since 1.3.4. Are
you sure the surface is not being duplicated somewhere? Unless you
use AG_PixmapAddSurface() (which does an AG_WidgetMapSurfaceNODUP()
call), the surface is always duplicated.

AG_PixmapUpdateCurrentSurface() simply sets a flag causing subsequent
AG_WidgetBlitSurface() calls to update the texture prior to drawing.

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to