diff options
author | 2008-03-03 01:51:31 +0000 | |
---|---|---|
committer | 2008-03-03 01:51:31 +0000 | |
commit | e31f9a631301dace92853014f9c8a909f7e02d3e (patch) | |
tree | 7a628da91c1e779225f87c96f5b80373e8496f38 /src/emu/render.c | |
parent | 05702939cde6179483f2b0f586ec1fb696933e41 (diff) |
Normalized function pointer typedefs: they are now all
suffixed with _func. Did this throughout the core and
drivers I was familiar with.
Fixed gcc compiler error with recent render.c changes.
gcc does not like explicit (int) casts on float or
double functions. This is fracking annoying and stupid,
but there you have it.
Diffstat (limited to 'src/emu/render.c')
-rw-r--r-- | src/emu/render.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/render.c b/src/emu/render.c index f7ffd6e4ab4..d2ff3e85717 100644 --- a/src/emu/render.c +++ b/src/emu/render.c @@ -135,7 +135,7 @@ struct _render_texture rectangle sbounds; /* source bounds within the bitmap */ UINT32 palettebase; /* palette base within the system palette */ int format; /* format of the texture data */ - texture_scaler scaler; /* scaling callback */ + texture_scaler_func scaler; /* scaling callback */ void * param; /* scaling callback parameter */ UINT32 curseq; /* current sequence number */ scaled_texture scaled[MAX_TEXTURE_SCALES]; /* array of scaled variants of this texture */ @@ -1940,10 +1940,10 @@ static int remove_clear_extent(const render_bounds *bounds) INT32 *max = &clear_extents[MAX_CLEAR_EXTENTS]; INT32 *last = &clear_extents[clear_extent_count]; INT32 *ext = &clear_extents[0]; - INT32 boundsx0 = (INT32) ceil(bounds->x0); - INT32 boundsx1 = (INT32) floor(bounds->x1); - INT32 boundsy0 = (INT32) ceil(bounds->y0); - INT32 boundsy1 = (INT32) floor(bounds->y1); + INT32 boundsx0 = ceil(bounds->x0); + INT32 boundsx1 = floor(bounds->x1); + INT32 boundsy0 = ceil(bounds->y0); + INT32 boundsy1 = floor(bounds->y1); INT32 y0, y1 = 0; /* loop over Y extents */ @@ -2221,7 +2221,7 @@ static void invalidate_all_render_ref(void *refptr) render_texture_alloc - allocate a new texture -------------------------------------------------*/ -render_texture *render_texture_alloc(texture_scaler scaler, void *param) +render_texture *render_texture_alloc(texture_scaler_func scaler, void *param) { render_texture *texture; |