Mercurial > sdl-ios-xcode
annotate docs/man3/SDL_RemoveTimer.3 @ 4140:fc69b552ee32 SDL-1.2
Date: Thu, 28 Feb 2008 22:54:29 +0100
From: Sylvain Beucler
Subject: [SDL] SDL window resize and flicker
I have a resizable SDL window, and when it's resized, the surface goes
black _and_ is flushed to screen before I have a chance to redraw
it. This causes flicker.
The super-small attached patch fixes this issue by avoiding a
SDL_Flip() right after the window resize. What do you think?
This SDL_ClearSurface function is only called once in the code, in
SDL_SetVideoMode, and as far as I can tell the patch doesn't introduce
other changes than getting rid of the flicker.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 29 Feb 2008 13:57:49 +0000 |
parents | 4e3b250c950e |
children | 1238da4a7112 |
rev | line source |
---|---|
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
1 .TH "SDL_RemoveTimer" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference" |
0 | 2 .SH "NAME" |
4107
4e3b250c950e
Erik Heckers fixed bug #493
Sam Lantinga <slouken@libsdl.org>
parents:
181
diff
changeset
|
3 SDL_RemoveTimer \- Remove a timer which was added with \fISDL_AddTimer\fR\&. |
0 | 4 .SH "SYNOPSIS" |
5 .PP | |
6 \fB#include "SDL\&.h" | |
7 .sp | |
8 \fBSDL_bool \fBSDL_RemoveTimer\fP\fR(\fBSDL_TimerID id\fR); | |
9 .SH "DESCRIPTION" | |
10 .PP | |
11 Removes a timer callback previously added with \fISDL_AddTimer\fR\&. | |
12 .SH "RETURN VALUE" | |
13 .PP | |
14 Returns a boolean value indicating success\&. | |
15 .SH "EXAMPLES" | |
16 .PP | |
17 .PP | |
18 .nf | |
19 \f(CWSDL_RemoveTimer(my_timer_id);\fR | |
20 .fi | |
21 .PP | |
22 .SH "SEE ALSO" | |
23 .PP | |
24 \fI\fBSDL_AddTimer\fP\fR | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
25 ...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01 |