[MPlayer-cvslog] r36323 - in trunk/libvo: matrixview.c matrixview.h vo_matrixview.c
reimar
subversion at mplayerhq.hu
Mon Jun 10 00:16:16 CEST 2013
Author: reimar
Date: Mon Jun 10 00:16:15 2013
New Revision: 36323
Log:
Remove unused arguments, add "const"
Modified:
trunk/libvo/matrixview.c
trunk/libvo/matrixview.h
trunk/libvo/vo_matrixview.c
Modified: trunk/libvo/matrixview.c
==============================================================================
--- trunk/libvo/matrixview.c Mon Jun 10 00:05:43 2013 (r36322)
+++ trunk/libvo/matrixview.c Mon Jun 10 00:16:15 2013 (r36323)
@@ -126,7 +126,7 @@ static void draw_flare(float x, float y,
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_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)
{
// Clear the color and depth buffers.
mpglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Modified: trunk/libvo/matrixview.h
==============================================================================
--- trunk/libvo/matrixview.h Mon Jun 10 00:05:43 2013 (r36322)
+++ trunk/libvo/matrixview.h Mon Jun 10 00:16:15 2013 (r36323)
@@ -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);
Modified: trunk/libvo/vo_matrixview.c
==============================================================================
--- trunk/libvo/vo_matrixview.c Mon Jun 10 00:05:43 2013 (r36322)
+++ trunk/libvo/vo_matrixview.c Mon Jun 10 00:16:15 2013 (r36323)
@@ -153,7 +153,7 @@ static void draw_osd(void)
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();
More information about the MPlayer-cvslog
mailing list