X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibgame%2Fsystem.c;h=2980d7b990a1504cb31a889f759c881c2c99bb5a;hb=e5a0a3097d6a6c3afea01b3deeee9b206982ec1d;hp=364394f10f0ba74e9388e845647473f730b1ad58;hpb=ee749a764df3dfa944c1f9de740ccbeb1cfdef40;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 364394f1..2980d7b9 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -515,6 +515,16 @@ inline void BlitBitmapOnBackground(Bitmap *src_bitmap, Bitmap *dst_bitmap, dst_x, dst_y); } +inline void DrawSimpleBlackLine(Bitmap *bitmap, int from_x, int from_y, + int to_x, int to_y) +{ +#if defined(TARGET_SDL) + SDLDrawSimpleLine(bitmap, from_x, from_y, to_x, to_y, BLACK_PIXEL); +#else + X11DrawSimpleLine(bitmap, from_x, from_y, to_x, to_y, BLACK_PIXEL); +#endif +} + inline void DrawSimpleWhiteLine(Bitmap *bitmap, int from_x, int from_y, int to_x, int to_y) { @@ -1240,6 +1250,11 @@ inline void InitJoysticks() #elif defined(PLATFORM_MSDOS) MSDOSInitJoysticks(); #endif + +#if 0 + for (i = 0; i < MAX_PLAYERS; i++) + printf("::: Joystick for player %d: %d\n", i, joystick.fd[i]); +#endif } inline boolean ReadJoystick(int nr, int *x, int *y, boolean *b1, boolean *b2)