Remember me

Lost Password?

Register now!


Who's Online
57 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 57


Support us!


Report message:*

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/9/10 12:12:18

I think i found why it fail to resize :

I have my screenmode as 32 bit in workbench.
Now, when we call from test case above:
bpp = videoInfo->vfmt->BitsPerPixel;
It correctly return 32 as it is.

Then, next line are:

surface = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, bpp, videoFlags );

And that one fail to resize properly. But once i change bpp to "16" manually, then resizing start to work.

It also can be that this whole SDL example just done wrong. But from other side while it should fail to resize if bpp differs, expectually, when originally it renders fine, and only fail after resizing.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project