1 Description: Fix build with gcc-5
2 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778003
3 Author: Jaromír Mikeš <mira.mikes@seznam.cz>
6 Index: meterbridge/src/linedraw.h
7 ===================================================================
8 --- meterbridge.orig/src/linedraw.h
9 +++ meterbridge/src/linedraw.h
14 -inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
15 +void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
17 void draw_ptr(SDL_Surface *surface, int x1, int y1, int x2, int y2, Uint32 nedle_col, Uint32 aa_col);
19 Index: meterbridge/src/linedraw.c
20 ===================================================================
21 --- meterbridge.orig/src/linedraw.c
22 +++ meterbridge/src/linedraw.c
24 /* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA,
25 * ordered ABGR (I think), probably wont work on bigendian systems */
27 -inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
28 +void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
30 Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x;