Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

render: round nVideoEchoOrientation

  • Loading branch information...
commit f201a79770af40660193ad7963dfb7bdde52b67a 1 parent 464f056
Sébastien Bourdeauducq authored May 16, 2011

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  src/raster.c
6  src/raster.c
@@ -394,11 +394,13 @@ static void init_scale_vertices(struct tmu_vertex *vertices)
394 394
 static void init_vecho_vertices(struct tmu_vertex *vertices, struct frame_descriptor *frd)
395 395
 {
396 396
 	int a, b;
  397
+	int orientation;
397 398
 
398 399
 	a = (32.0-32.0/frd->vecho_zoom)*(float)renderer_texsize;
399 400
 	b = renderer_texsize*64 - a;
400 401
 
401  
-	if((frd->vecho_orientation == 1) || (frd->vecho_orientation == 3)) {
  402
+	orientation = (int)frd->vecho_orientation;
  403
+	if((orientation == 1) || (orientation == 3)) {
402 404
 		vertices[0].x = b;
403 405
 		vertices[1].x = a;
404 406
 		vertices[TMU_MESH_MAXSIZE].x = b;
@@ -409,7 +411,7 @@ static void init_vecho_vertices(struct tmu_vertex *vertices, struct frame_descri
409 411
 		vertices[TMU_MESH_MAXSIZE].x = a;
410 412
 		vertices[TMU_MESH_MAXSIZE+1].x = b;
411 413
 	}
412  
-	if((frd->vecho_orientation == 2) || (frd->vecho_orientation == 3)) {
  414
+	if((orientation == 2) || (orientation == 3)) {
413 415
 		vertices[0].y = b;
414 416
 		vertices[1].y = b;
415 417
 		vertices[TMU_MESH_MAXSIZE].y = a;

0 notes on commit f201a79

Please sign in to comment.
Something went wrong with that request. Please try again.