render: rename dimage_opt() into dsubimage()

This commit is contained in:
lephe 2019-07-06 16:49:59 -04:00
parent eece35566e
commit 3c7a8891d0
2 changed files with 6 additions and 6 deletions

View File

@ -83,13 +83,13 @@ typedef struct
/* dimage() - render a full image
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
@image Pointer to image encoded with [fxconv] */
void dimage(int x, int y, image_t const *image);
/* Option values for dimage_opt() */
/* Option values for dsubimage() */
enum {
/* Disable clipping, ie. adjustments to the specified subrectangle and
screen location such that any part that overflows from the image or
@ -97,7 +97,7 @@ enum {
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
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]
@left @top Top-left coordinates of the subrectangle within [image]
@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);
#endif /* FX9860G */

View File

@ -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);
}
/* dimage_opt() - render a section of an image */
void dimage_opt(int x, int y, image_t const *img, int left, int top,
/* dsubimage() - render a section of an image */
void dsubimage(int x, int y, image_t const *img, int left, int top,
int width, int height, int flags)
{
if(img->gray) return;