move video_pixel_scalar struct to gfx/video_driver.c

This commit is contained in:
twinaphex 2015-11-29 01:48:25 +01:00
parent b8df5fd584
commit be0857aff2
2 changed files with 6 additions and 7 deletions

View File

@ -69,6 +69,12 @@ typedef struct video_driver_state
} filter;
} video_driver_state_t;
typedef struct video_pixel_scaler
{
struct scaler_ctx *scaler;
void *scaler_out;
} video_pixel_scaler_t;
/* Opaque handles to currently running window.
* Used by e.g. input drivers which bind to a window.
* Drivers are responsible for setting these if an input driver

View File

@ -88,13 +88,6 @@ struct font_params
enum text_alignment text_align;
};
typedef struct video_pixel_scaler
{
struct scaler_ctx *scaler;
void *scaler_out;
} video_pixel_scaler_t;
#define FONT_COLOR_RGBA(r, g, b, a) (((r) << 24) | ((g) << 16) | ((b) << 8) | ((a) << 0))
#define FONT_COLOR_GET_RED(col) (((col) >> 24) & 0xff)
#define FONT_COLOR_GET_GREEN(col) (((col) >> 16) & 0xff)