To correct my problem, I first switched from a double buffered surface to a
simple one. As a consequence, I used SDL_UpdateRect instead of SDL_Flip. But the
most important thing is, I first drew my tiles using the dot per dot (and slow)
method, and then, once the screen was filled, I could use the fast blit method
(using SDL_BlitSurface.
ESPOSITO Julien
Sue_H
June 3, 2005, 1:15pm
2
Hi,
I recently moved a program I made from one computer A to another computer B.
The program plays videos using SDL and SMPEG libraries.
For some reason on the new computer B, the graphics look like this:
http://onsight.id.gu.se/~sue/image.jpg
Whereas they should look like this:
http://onsight.id.gu.se/~sue/original.jpg
If I use mplayer on computer B, the videos play just fine, so I am assuming it
is a problem with some part of my code for SDL. But could I be wrong?
Any ideas?
Thanks_____________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Hi,
I recently moved a program I made from one computer A to another computer B.
The program plays videos using SDL and SMPEG libraries.
For some reason on the new computer B, the graphics look like this:
http://onsight.id.gu.se/~sue/image.jpg
Whereas they should look like this:
http://onsight.id.gu.se/~sue/original.jpg
If I use mplayer on computer B, the videos play just fine, so I am assuming it
is a problem with some part of my code for SDL. But could I be wrong?
Based on the images my first guess would be that your code works on the
video mode you got on A, but that you get a different video mode on B.
Bob PendletonOn Fri, 2005-06-03 at 15:15 +0200, shu wrote:
Any ideas?
Thanks
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±-------------------------------------+
Sue_H
June 5, 2005, 3:10pm
4
Quoting Bob Pendleton :> On Fri, 2005-06-03 at 15:15 +0200, shu wrote:
Hi,
I recently moved a program I made from one computer A to another computer
B.
The program plays videos using SDL and SMPEG libraries.
For some reason on the new computer B, the graphics look like this:
http://onsight.id.gu.se/~sue/image.jpg
Whereas they should look like this:
http://onsight.id.gu.se/~sue/original.jpg
If I use mplayer on computer B, the videos play just fine, so I am assuming
it
is a problem with some part of my code for SDL. But could I be wrong?
Based on the images my first guess would be that your code works on the
video mode you got on A, but that you get a different video mode on B.
Bob Pendleton
Any ideas?
Thanks
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±-------------------------------------+
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
thanks, it was fixed by changing the bits per pixel in the video mode.
–shu