changeset 36227:f73711af11ae

Remove unused arguments, add "const"
author reimar
date Sun, 09 Jun 2013 22:16:15 +0000
parents 68cbead2e8a5
children 1a1d0d3220e7
files libvo/matrixview.c libvo/matrixview.h libvo/vo_matrixview.c
diffstat 3 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/matrixview.c	Sun Jun 09 22:05:43 2013 +0000
+++ b/libvo/matrixview.c	Sun Jun 09 22:16:15 2013 +0000
@@ -126,7 +126,7 @@
     mpglVertex3f(x - 1, y - 2, z);
 }
 
-static void draw_text(uint8_t *pic)
+static void draw_text(const uint8_t *pic)
 {
     int x, y;
     int p = 0;
@@ -326,8 +326,7 @@
 }
 
 
-void matrixview_draw(int w, int h, double currentTime, float frameTime,
-                     uint8_t *data)
+void matrixview_draw(double currentTime, const uint8_t *data)
 {
     // Clear the color and depth buffers.
     mpglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
--- a/libvo/matrixview.h	Sun Jun 09 22:05:43 2013 +0000
+++ b/libvo/matrixview.h	Sun Jun 09 22:16:15 2013 +0000
@@ -23,8 +23,7 @@
 
 void matrixview_init (int w, int h);
 void matrixview_reshape (int w, int h);
-void matrixview_draw (int w, int h, double currentTime, float frameTime,
-                      uint8_t *data);
+void matrixview_draw (double currentTime, const uint8_t *data);
 void matrixview_matrix_resize(int w, int h);
 void matrixview_contrast_set(float contrast);
 void matrixview_brightness_set(float brightness);
--- a/libvo/vo_matrixview.c	Sun Jun 09 22:05:43 2013 +0000
+++ b/libvo/vo_matrixview.c	Sun Jun 09 22:16:15 2013 +0000
@@ -153,7 +153,7 @@
 
 static void flip_page(void)
 {
-    matrixview_draw(vo_dwidth, vo_dheight, GetTimer(), 0.0, map_image[0]);
+    matrixview_draw(GetTimer(), map_image[0]);
     // Needed at least on PPC Mac Mini on OSX. Should not hurt
     // much to do always.
     mpglFlush();