summaryrefslogtreecommitdiff
path: root/libpsx/include/psxgpu.h
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 11:14:51 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 11:14:51 +0100
commit08ca71f289cd63090edea06ce9fe1803c20d799b (patch)
treebc440579395021a652f608475db14996f1470071 /libpsx/include/psxgpu.h
parentf3df02b0d0a5d3a80c1bdefca78e9bd325f9f4d4 (diff)
downloadpsxsdk-08ca71f289cd63090edea06ce9fe1803c20d799b.tar.gz
Solved const-correctness issues
Diffstat (limited to 'libpsx/include/psxgpu.h')
-rw-r--r--libpsx/include/psxgpu.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsx/include/psxgpu.h b/libpsx/include/psxgpu.h
index 770754a..4548d4d 100644
--- a/libpsx/include/psxgpu.h
+++ b/libpsx/include/psxgpu.h
@@ -664,9 +664,9 @@ typedef struct
/** Height of image in framebuffer */
int h;
/** Pointer to CLUT data */
- void *clut_data;
+ const void *clut_data;
/** Pointer to image data */
- void *data;
+ const void *data;
}GsImage;
/**
@@ -796,7 +796,7 @@ void MoveImage(int src_x, int src_y, int dst_x, int dst_y, int w, int h);
* @param h Height of image data
*/
-void LoadImage(void *img, int x, int y, int w, int h);
+void LoadImage(const void *img, int x, int y, int w, int h);
/**
* Draws a rectangle in the framebuffer, without considering drawing
@@ -859,7 +859,7 @@ void gpu_data_ctrl(unsigned int command, unsigned int param);
* Puts information about a TIM image passed in a buffer in a GsImage structure.
*/
-int GsImageFromTim(GsImage *image, void *timdata);
+int GsImageFromTim(GsImage *image, const void *timdata);
/**
* Uploads an image described by a GsImage structure to video memory.