First... I'm unsure if this question should be posted on this list or SDL's, or pygame's... it deals with all three really. So with that said..
How would i get the following python code to display on the dfbmga (Matrox G400DH) so it displays on my TV. I have re-complied the kernel with the patches from http://www.sci.fi/~syrjala/ Complied SDL and confirmed that it sees the directfb and have also complied mplayer.. mplayer file -vo dfbmga:nospic works, displaying the movie to the tv. I have set the SDL_VIDEODRIVER=directfb I have the following in my /etc/directfbrc: matrox-crtc2 matrox-tv-standard=ntsc **************************python code********************** import sys, pygame pygame.init() size = width, height = 800, 600 speed = [2,2] black = 1, 2, 3 screen = pygame.display.set_mode(size) ball = pygame.image.load("ball.bmp") ballrect = ball.get_rect() while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() ballrect = ballrect.move(speed) if ballrect.left < 0 or ballrect.right > width: speed[0] = -speed[0] if ballrect.top < 0 or ballrect.bottom > height: speed[1] = -speed[1] screen.fill(black) screen.blit(ball, ballrect) pygame.display.flip() ************************************* Ok... this really isnt the pice of code that I really want to display... its freevo.. but I need someplace to start troubleshooting my problem. So I thought I needed some basic understanding how it works... Scott -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
