From 57f28295dac64cd702b1ddb1fe68be645d7469bb Mon Sep 17 00:00:00 2001
From: Zane van Iperen <zane@zanevaniperen.com>
Date: Sat, 5 Oct 2024 11:45:35 +0900
Subject: [PATCH] drivers/glrend/video: remove VIDEOI_BrRectToUVs()

---
 drivers/glrend/drv_ip.h | 2 --
 drivers/glrend/video.c  | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/drivers/glrend/drv_ip.h b/drivers/glrend/drv_ip.h
index 2d6189e6..c0f93306 100644
--- a/drivers/glrend/drv_ip.h
+++ b/drivers/glrend/drv_ip.h
@@ -31,8 +31,6 @@ br_boolean VIDEOI_CompileBRenderShader(HVIDEO hVideo, const char *vertPath, cons
 
 void VIDEOI_BrRectToGL(const br_pixelmap *pm, br_rectangle *r);
 
-void VIDEOI_BrRectToUVs(const br_pixelmap *pm, const br_rectangle *r, float *x0, float *y0, float *x1, float *y1);
-
 br_matrix4 *VIDEOI_D3DtoGLProjection(br_matrix4 *m);
 
 const br_pixelmap_gl_fmt *DeviceGLGetFormatDetails(br_uint_8 type);
diff --git a/drivers/glrend/video.c b/drivers/glrend/video.c
index c8b02690..b90f791c 100644
--- a/drivers/glrend/video.c
+++ b/drivers/glrend/video.c
@@ -220,15 +220,6 @@ void VIDEOI_BrRectToGL(const br_pixelmap *pm, br_rectangle *r)
     r->y = pm->height - r->h - r->y;
 }
 
-void VIDEOI_BrRectToUVs(const br_pixelmap *pm, const br_rectangle *r, float *x0, float *y0, float *x1, float *y1)
-{
-    *x0 = (float)r->x / (float)pm->width;
-    *y0 = (float)r->y / (float)pm->height;
-
-    *x1 = (float)(r->x + r->w) / (float)pm->width;
-    *y1 = (float)(r->y + r->h) / (float)pm->height;
-}
-
 br_matrix4 *VIDEOI_D3DtoGLProjection(br_matrix4 *m)
 {
     // Change the signs