Dummy video provider was always creating 640x480 frames, now creates in the right resolution

Originally committed to SVN as r994.
This commit is contained in:
Niels Martin Hansen 2007-04-04 01:21:23 +00:00
parent 28504a5c9b
commit f292339808
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void DummyVideoProvider::Create(double _fps, int frames, int _width, int _height
width = _width;
height = _height;
frame = AegiVideoFrame(640,480,FORMAT_RGB32);
frame = AegiVideoFrame(width,height,FORMAT_RGB32);
unsigned char *dst = frame.data[0];
unsigned char r = colour.Red(), g = colour.Green(), b = colour.Blue();
for (int i=frame.pitch[0]*frame.h/frame.GetBpp();--i>=0;) {