Line
Link Here
|
0 |
-- meterbridge-0.9.3/src/linedraw.c |
0 |
++ meterbridge-0.9.3/src/linedraw.c |
Lines 4-10
Link Here
|
4 |
/* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA, |
4 |
/* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA, |
5 |
* ordered ABGR (I think), probably wont work on bigendian systems */ |
5 |
* ordered ABGR (I think), probably wont work on bigendian systems */ |
6 |
|
6 |
|
7 |
inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col) |
7 |
extern inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col) |
8 |
{ |
8 |
{ |
9 |
Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x; |
9 |
Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x; |
10 |
*bufp = col; |
10 |
*bufp = col; |
11 |
-- meterbridge-0.9.3/src/linedraw.h |
11 |
++ meterbridge-0.9.3/src/linedraw.h |
Lines 1-7
Link Here
|
1 |
#ifndef LINEDRAW_H |
1 |
#ifndef LINEDRAW_H |
2 |
#define LINEDRAW_H |
2 |
#define LINEDRAW_H |
3 |
|
3 |
|
4 |
inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col); |
4 |
extern inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col); |
5 |
|
5 |
|
6 |
void draw_ptr(SDL_Surface *surface, int x1, int y1, int x2, int y2, Uint32 nedle_col, Uint32 aa_col); |
6 |
void draw_ptr(SDL_Surface *surface, int x1, int y1, int x2, int y2, Uint32 nedle_col, Uint32 aa_col); |
7 |
|
7 |
|