Hi all
I'm making a very quick little image browser using the GapiDraw library - it is a very basic app with a blit of the image surface to the backbuffer
The browser reads a filename from a line in a text file (the line number depends on the offset controlled by the users keypresses)
when the user presses a key to increase the line offset I increase/decrease the line offset, read the new line from the text file, and then do :-
m_loadedimage.CreateSurface(GDSURFACE_SYSTEMMEMORY,tname);
where m_loaded image is a CGapiSurface and tname is the filename from the text file
the problem is that sometimes the image doesn't change to the new image - yes the filename is correct, and present, and it doesn't do it with the same image every time - images are varying sizes, types and depths
so I set another key to just call the loading routine with the current offset, and again, that works sometimes - but not all the time
I even tried doing :-
m_loadedimage.CreateSurface(GDSURFACE_CLEAR, 16, 16);
before my load line, just to make sure that the surface had no properties the same as the loaded images
am I doing something wrong?? or is it just that GapiDraw doesn't like doing this for some reason?
all help gratefully received
muff
I'm making a very quick little image browser using the GapiDraw library - it is a very basic app with a blit of the image surface to the backbuffer
The browser reads a filename from a line in a text file (the line number depends on the offset controlled by the users keypresses)
when the user presses a key to increase the line offset I increase/decrease the line offset, read the new line from the text file, and then do :-
m_loadedimage.CreateSurface(GDSURFACE_SYSTEMMEMORY,tname);
where m_loaded image is a CGapiSurface and tname is the filename from the text file
the problem is that sometimes the image doesn't change to the new image - yes the filename is correct, and present, and it doesn't do it with the same image every time - images are varying sizes, types and depths
so I set another key to just call the loading routine with the current offset, and again, that works sometimes - but not all the time
I even tried doing :-
m_loadedimage.CreateSurface(GDSURFACE_CLEAR, 16, 16);
before my load line, just to make sure that the surface had no properties the same as the loaded images
am I doing something wrong?? or is it just that GapiDraw doesn't like doing this for some reason?
all help gratefully received
muff