Commit ce410261 authored by Sam Lantinga's avatar Sam Lantinga

On Windows the minimum window size may be larger than 80, so explicitly...

On Windows the minimum window size may be larger than 80, so explicitly request the expected rectangle.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404274
parent 5c77d00a
......@@ -56,11 +56,17 @@ static int render_testBlitBlend (void);
static int render_compare( const char *msg, const SurfaceImage_t *s, int allowable_error )
{
int ret;
SDL_Rect rect;
Uint8 pix[4*80*60];
SDL_Surface *testsur;
/* Read pixels. */
ret = SDL_RenderReadPixels( NULL, FORMAT, pix, 80*4 );
/* Explicitly specify the rect in case the window isn't expected size... */
rect.x = 0;
rect.y = 0;
rect.w = 80;
rect.h = 60;
ret = SDL_RenderReadPixels( &rect, FORMAT, pix, 80*4 );
if (SDL_ATassert( "SDL_RenderReadPixels", ret==0) )
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment