mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-01 14:33:34 +01:00
render: rename dimage_opt() into dsubimage()
This commit is contained in:
parent
eece35566e
commit
3c7a8891d0
2 changed files with 6 additions and 6 deletions
|
@ -83,13 +83,13 @@ typedef struct
|
||||||
|
|
||||||
/* dimage() - render a full image
|
/* dimage() - render a full image
|
||||||
This function blits an image on the VRAM using gint's special format. It is
|
This function blits an image on the VRAM using gint's special format. It is
|
||||||
a special case of dimage_opt() where the full image is drawn with clipping.
|
a special case of dsubimage() where the full image is drawn with clipping.
|
||||||
|
|
||||||
@x @y Coordinates of the top-left corner of the image
|
@x @y Coordinates of the top-left corner of the image
|
||||||
@image Pointer to image encoded with [fxconv] */
|
@image Pointer to image encoded with [fxconv] */
|
||||||
void dimage(int x, int y, image_t const *image);
|
void dimage(int x, int y, image_t const *image);
|
||||||
|
|
||||||
/* Option values for dimage_opt() */
|
/* Option values for dsubimage() */
|
||||||
enum {
|
enum {
|
||||||
/* Disable clipping, ie. adjustments to the specified subrectangle and
|
/* Disable clipping, ie. adjustments to the specified subrectangle and
|
||||||
screen location such that any part that overflows from the image or
|
screen location such that any part that overflows from the image or
|
||||||
|
@ -97,7 +97,7 @@ enum {
|
||||||
DIMAGE_NOCLIP = 0x01,
|
DIMAGE_NOCLIP = 0x01,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* dimage_opt() - render a section of an image
|
/* dsubimage() - render a section of an image
|
||||||
This function blits a subrectangle [left, top, width, height] of an image on
|
This function blits a subrectangle [left, top, width, height] of an image on
|
||||||
the VRAM. It is more general than dimage() and also provides a few options.
|
the VRAM. It is more general than dimage() and also provides a few options.
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ enum {
|
||||||
@image Pointer to image encoded with [fxconv]
|
@image Pointer to image encoded with [fxconv]
|
||||||
@left @top Top-left coordinates of the subrectangle within [image]
|
@left @top Top-left coordinates of the subrectangle within [image]
|
||||||
@width @height Subrectangle dimensions */
|
@width @height Subrectangle dimensions */
|
||||||
void dimage_opt(int x, int y, image_t const *image, int left, int top,
|
void dsubimage(int x, int y, image_t const *image, int left, int top,
|
||||||
int width, int height, int flags);
|
int width, int height, int flags);
|
||||||
|
|
||||||
#endif /* FX9860G */
|
#endif /* FX9860G */
|
||||||
|
|
|
@ -8,8 +8,8 @@ void dimage(int x, int y, image_t const *img)
|
||||||
bopti_render_clip(x, y, img, 0, 0, img->width, img->height);
|
bopti_render_clip(x, y, img, 0, 0, img->width, img->height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dimage_opt() - render a section of an image */
|
/* dsubimage() - render a section of an image */
|
||||||
void dimage_opt(int x, int y, image_t const *img, int left, int top,
|
void dsubimage(int x, int y, image_t const *img, int left, int top,
|
||||||
int width, int height, int flags)
|
int width, int height, int flags)
|
||||||
{
|
{
|
||||||
if(img->gray) return;
|
if(img->gray) return;
|
||||||
|
|
Loading…
Reference in a new issue