Autorefresh on expose removed from 1.3/2.0?

(Please CC me, I am not subscribed)

Hey folks,

I’ve been trying to get an application to work with 1.3 (previously
linking against 1.2) and ran into a redraw issue. When switching from
and back to my application, the screen was not properly redrawn, while
it worked with 1.2.

A bit of digging suggests that SDL had an “autorefresh” feature where it
would just update the entire screen instead of posting a SDL_VIDEOEXPOSE
event when using ximage. This feature seems to be removed in 1.3 / 2.0
(I’m also a bit confused about the distinction between those
versions…). This means with 1.3 I must handle the SDL_VIDEOEXPOSE
event with a call to SDL_UpdateRect to make it work.

Finding a bit more info on this removal using the mercurial repositories
didn’t quite work, it seems the 1.2 and 2.0 repositories have no base?

Note that I am still using SDL_SetVideoMode and SDL_UpdateRects to do my
screen drawing, since I want to keep my application compatible with 1.2
as well (with minimal #ifdeffing). So perhaps this would be
automagically fixed

In any case, if my observations are correct, and this auto-refresh was
removed, would it make sense to document this at
http://wiki.libsdl.org/moin.cgi/MigrationGuide I would have a stab at
it, but I really don’t know enough of the change to write anything
sensible.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120206/4d4635bb/attachment.pgp

I use 1.2.13 but you are saying it worked fine in 1.2 and in 1.3 when you
alt tab from one window to another the sdl ap is not drawn right when you
flip to it? What does the thing that’s not right look like??On Mon, Feb 6, 2012 at 10:44 AM, Matthijs Kooijman wrote:

(Please CC me, I am not subscribed)

Hey folks,

I’ve been trying to get an application to work with 1.3 (previously
linking against 1.2) and ran into a redraw issue. When switching from
and back to my application, the screen was not properly redrawn, while
it worked with 1.2.

A bit of digging suggests that SDL had an “autorefresh” feature where it
would just update the entire screen instead of posting a SDL_VIDEOEXPOSE
event when using ximage. This feature seems to be removed in 1.3 / 2.0
(I’m also a bit confused about the distinction between those
versions…). This means with 1.3 I must handle the SDL_VIDEOEXPOSE
event with a call to SDL_UpdateRect to make it work.

Finding a bit more info on this removal using the mercurial repositories
didn’t quite work, it seems the 1.2 and 2.0 repositories have no base?

Note that I am still using SDL_SetVideoMode and SDL_UpdateRects to do my
screen drawing, since I want to keep my application compatible with 1.2
as well (with minimal #ifdeffing). So perhaps this would be
automagically fixed

In any case, if my observations are correct, and this auto-refresh was
removed, would it make sense to document this at
http://wiki.libsdl.org/moin.cgi/MigrationGuide I would have a stab at
it, but I really don’t know enough of the change to write anything
sensible.

Gr.

Matthijs

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk8wA4gACgkQz0nQ5oovr7wmLgCdHl6n1ZUDuF3HYy7Wtpispax8
EaQAn0j1NlwFKo+gDqrgbRPVf+2Hlt/g
=72Vy
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org