diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-04-30 12:30:08 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-04-30 12:30:08 +0300 |
commit | 6c59c4c763d9f74b87db18e00ebf8a5e733bcfbc (patch) | |
tree | 4a4e34f328698f4bfa314f22f6bc6f2ad8dc7f74 /src | |
parent | 30efcc63a2a338c00fbf5269d00ba5533058c05b (diff) | |
download | xine-lib-6c59c4c763d9f74b87db18e00ebf8a5e733bcfbc.tar.gz xine-lib-6c59c4c763d9f74b87db18e00ebf8a5e733bcfbc.tar.bz2 |
video_out_sdl: remove static variables
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_sdl.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/video_out/video_out_sdl.c b/src/video_out/video_out_sdl.c index f2fd6a200..6058cd57d 100644 --- a/src/video_out/video_out_sdl.c +++ b/src/video_out/video_out_sdl.c @@ -98,6 +98,9 @@ struct sdl_driver_s { xine_t *xine; alphablend_t alphablend_extra_data; + + int last_gui_width; /* used when frontend does not provide frame_output_cb */ + int last_gui_height; }; typedef struct { @@ -281,14 +284,12 @@ static int sdl_redraw_needed (vo_driver_t *this_gen) { #else - static int last_gui_width, last_gui_height; - - if( last_gui_width != this->sc.gui_width || - last_gui_height != this->sc.gui_height || + if( this->last_gui_width != this->sc.gui_width || + this->last_gui_height != this->sc.gui_height || this->sc.force_redraw ) { - last_gui_width = this->sc.gui_width; - last_gui_height = this->sc.gui_height; + this->last_gui_width = this->sc.gui_width; + this->last_gui_height = this->sc.gui_height; sdl_compute_output_size (this); |