From e7da86053b3df2882816b0df8089e1a51b61939f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 28 Sep 2012 15:26:29 +0200 Subject: autotools based build system --- osc_graphics.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 osc_graphics.h (limited to 'osc_graphics.h') diff --git a/osc_graphics.h b/osc_graphics.h deleted file mode 100644 index 2a08678..0000000 --- a/osc_graphics.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef __OSC_GRAPHICS_H -#define __OSC_GRAPHICS_H - -#include - -#include - -#include "osc_server.h" -#include "layer.h" - -/* - * Macros - */ -#define NARRAY(ARRAY) \ - (sizeof(ARRAY) / sizeof((ARRAY)[0])) - -#define SDL_MAYBE_LOCK(SURFACE) do { \ - if (SDL_MUSTLOCK(SURFACE)) \ - SDL_LockSurface(SURFACE); \ -} while (0) - -#define SDL_MAYBE_UNLOCK(SURFACE) do { \ - if (SDL_MUSTLOCK(SURFACE)) \ - SDL_UnlockSurface(SURFACE); \ -} while (0) - -#define SDL_FREESURFACE_SAFE(SURFACE) do { \ - if (SURFACE) { \ - SDL_FreeSurface(SURFACE); \ - SURFACE = NULL; \ - } \ -} while (0) - -#define SDL_ERROR(FMT, ...) do { \ - fprintf(stderr, "%s(%d): " FMT ": %s\n", \ - __FILE__, __LINE__, ##__VA_ARGS__, SDL_GetError()); \ -} while (0) - -/* - * Declarations - */ -extern SDL_Surface *screen; - -extern int config_dump_osc; - -#endif -- cgit v1.2.3