Mercurial > mplayer.hg
comparison libvo/vo_sdl.c @ 8123:9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author | arpi |
---|---|
date | Wed, 06 Nov 2002 23:54:29 +0000 |
parents | 3d2ec2568659 |
children | 5b39e79af5fe |
comparison
equal
deleted
inserted
replaced
8122:272b1fda7287 | 8123:9fc45fe0d444 |
---|---|
1137 //static uint32_t draw_slice(uint8_t *src[], uint32_t slice_num) | 1137 //static uint32_t draw_slice(uint8_t *src[], uint32_t slice_num) |
1138 static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) | 1138 static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) |
1139 { | 1139 { |
1140 struct sdl_priv_s *priv = &sdl_priv; | 1140 struct sdl_priv_s *priv = &sdl_priv; |
1141 uint8_t *dst; | 1141 uint8_t *dst; |
1142 uint8_t *src; | |
1143 int i; | |
1144 | 1142 |
1145 SDL_OVR_LOCK(-1) | 1143 SDL_OVR_LOCK(-1) |
1146 | 1144 |
1147 y += priv->y; | 1145 y += priv->y; |
1148 | 1146 |
1193 static void check_events (void) | 1191 static void check_events (void) |
1194 { | 1192 { |
1195 struct sdl_priv_s *priv = &sdl_priv; | 1193 struct sdl_priv_s *priv = &sdl_priv; |
1196 SDL_Event event; | 1194 SDL_Event event; |
1197 SDLKey keypressed = 0; | 1195 SDLKey keypressed = 0; |
1198 static int modifiers = 0; | |
1199 | 1196 |
1200 /* Poll the waiting SDL Events */ | 1197 /* Poll the waiting SDL Events */ |
1201 while ( SDL_PollEvent(&event) ) { | 1198 while ( SDL_PollEvent(&event) ) { |
1202 switch (event.type) { | 1199 switch (event.type) { |
1203 | 1200 |