Mercurial > hg > easaier-soundaccess
comparison data/fileio/VideoFileReader.cpp @ 145:e63e8272dcb0
the video size is updated automatically
author | benoitrigolleau |
---|---|
date | Tue, 13 Nov 2007 17:23:53 +0000 |
parents | 3b2b790e47e5 |
children | c946c19e6329 |
comparison
equal
deleted
inserted
replaced
144:f3dce7a985cf | 145:e63e8272dcb0 |
---|---|
190 { | 190 { |
191 int w,h; | 191 int w,h; |
192 // we get the size from our active video stream, if no active video stream | 192 // we get the size from our active video stream, if no active video stream |
193 // exists, width and height are set to default values (320x240) | 193 // exists, width and height are set to default values (320x240) |
194 SDL_ffmpegGetVideoSize(file, &w, &h); | 194 SDL_ffmpegGetVideoSize(file, &w, &h); |
195 | |
196 MainWindow * MWins=MainWindow::instance(); | |
197 MWins->setSDLInitSize(w,h); | |
198 | |
199 | |
195 SDL_Init(SDL_INIT_VIDEO); | 200 SDL_Init(SDL_INIT_VIDEO); |
196 Videow=w; | 201 Videow=w; |
197 Videoh=h; | 202 Videoh=h; |
198 // Open the Video device | 203 // Open the Video device |
199 screen = SDL_SetVideoMode(w, h, 0, SDL_DOUBLEBUF|SDL_HWSURFACE); | 204 screen = SDL_SetVideoMode(w, h, 0, SDL_DOUBLEBUF|SDL_HWSURFACE); |