#include "goomconfig.h"
#include "libmythbase/mythconfig.h"
Go to the source code of this file.
|
| static void | draw_line (int *data, int x1, int y1, int x2, int y2, int col, int screenx, int screeny) |
| |
◆ DRAWMETHOD
◆ DRAWMETHOD_DONE
| #define DRAWMETHOD_DONE |
( |
| ) |
{} |
◆ DRAWMETHOD_NORMAL
| #define DRAWMETHOD_NORMAL |
( |
|
adr, |
|
|
|
col |
|
) |
| {*(adr) = (col);} |
◆ DRAWMETHOD_OR
| #define DRAWMETHOD_OR |
( |
|
adr, |
|
|
|
col |
|
) |
| {*(adr)|=(col);} |
◆ DRAWMETHOD_PLUS
| #define DRAWMETHOD_PLUS |
( |
|
_out, |
|
|
|
_backbuf, |
|
|
|
_col |
|
) |
| |
Value:{\
int tra=0,i=0;\
unsigned char *bra = (unsigned char*)&(_backbuf);\
unsigned char *dra = (unsigned char*)&(_out);\
unsigned char *cra = (unsigned char*)&(_col);\
for (;i<4;i++) {\
tra = *cra;\
tra += *bra;\
if (tra>255) tra=255;\
*dra = tra;\
++dra;++cra;++bra;\
}\
}
Definition at line 20 of file drawmethods.h.
◆ draw_line()
| static void draw_line |
( |
int * |
data, |
|
|
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2, |
|
|
int |
col, |
|
|
int |
screenx, |
|
|
int |
screeny |
|
) |
| |
|
static |