PC fix build

This commit is contained in:
Twinaphex 2012-05-27 22:45:00 +02:00
parent b6131dfcd7
commit 15e16728f2
3 changed files with 4 additions and 3 deletions

View File

@ -398,7 +398,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
}
#ifdef HAVE_OPENGL
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
void gfx_ctx_set_projection(gl_t *gl, ortho_t *ortho, bool allow_rotate)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();

View File

@ -227,6 +227,7 @@ extern const GLfloat white_color[];
void gl_render_msg_post(gl_t *gl)
{
ortho_t ortho = {0}; //dummy - no overscan on PC
#ifdef HAVE_FREETYPE
// Go back to old rendering path.
glTexCoordPointer(2, GL_FLOAT, 0, gl->tex_coords);
@ -235,7 +236,7 @@ void gl_render_msg_post(gl_t *gl)
glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);
glDisable(GL_BLEND);
gl_set_projection(gl, true);
gl_set_projection(gl, &ortho, true);
#else
(void)gl;
#endif

View File

@ -438,7 +438,7 @@ void gl_set_projection(gl_t *gl, ortho_t *ortho, bool allow_rotate)
gl_shader_set_proj_matrix();
}
static void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate)
void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate)
{
unsigned vp_x_temp, vp_y_temp, vp_width_temp, vp_height_temp;
ortho_t ortho;