diff bpgview.c @ 5:524eae707ba4

Cosmetics: Remove trailing whitespace.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2016 10:38:38 +0200
parents 772086c29cc7
children
line wrap: on
line diff
--- a/bpgview.c	Wed Dec 07 10:37:38 2016 +0200
+++ b/bpgview.c	Wed Dec 07 10:38:38 2016 +0200
@@ -96,12 +96,12 @@
         return NULL;
     if (fread(buf, 1, len, f) != len)
         return NULL;
-    
+
     frames = NULL;
     frame_count = 0;
 
     s = bpg_decoder_open();
-    if (bpg_decoder_decode(s, buf, len) < 0) 
+    if (bpg_decoder_decode(s, buf, len) < 0)
         goto fail;
     bpg_decoder_get_info(s, bi);
 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
@@ -122,9 +122,9 @@
         frames = realloc(frames, sizeof(frames[0]) * (frame_count + 1));
         img = SDL_CreateRGBSurface(SDL_HWSURFACE, bi->width, bi->height, 32,
                                    rmask, gmask, bmask, amask);
-        if (!img) 
+        if (!img)
             goto fail;
-    
+
         SDL_LockSurface(img);
         for(y = 0; y < bi->height; y++) {
             bpg_decoder_get_line(s, (uint8_t *)img->pixels + y * img->pitch);
@@ -155,7 +155,7 @@
         SDL_RemoveTimer(dc->frame_timer_id);
         dc->frame_timer_id = 0;
     }
-    dc->frame_timer_id = 
+    dc->frame_timer_id =
         SDL_AddTimer(dc->frames[dc->frame_index].delay, timer_cb, NULL);
 }
 
@@ -201,7 +201,7 @@
         SDL_RemoveTimer(dc->frame_timer_id);
         dc->frame_timer_id = 0;
     }
-    
+
     dc->frame_count = frame_count;
     dc->frames = frames;
     dc->frame_index = 0;
@@ -531,7 +531,7 @@
             break;
         }
     }
- done: 
+ done:
 
     SDL_FreeSurface(dc->screen);
     return 0;