gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/backend render_handler_ogl.cpp


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/backend render_handler_ogl.cpp
Date: Wed, 08 Nov 2006 15:55:13 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/11/08 15:55:12

Modified files:
        backend        : render_handler_ogl.cpp 

Log message:
                * backend\render_handler_ogl.cpp: hack for glRasterPos2f()
                * server\asobj\NetStream.cpp: pthread_join() should be caused
                  in only case when video streamer is started

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_ogl.cpp?cvsroot=gnash&r1=1.52&r2=1.53

Patches:
Index: render_handler_ogl.cpp
===================================================================
RCS file: /sources/gnash/gnash/backend/render_handler_ogl.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- render_handler_ogl.cpp      8 Nov 2006 09:40:34 -0000       1.52
+++ render_handler_ogl.cpp      8 Nov 2006 15:55:12 -0000       1.53
@@ -6,7 +6,7 @@
 // A render_handler that uses SDL & OpenGL
 
 
-/* $Id: render_handler_ogl.cpp,v 1.52 2006/11/08 09:40:34 alexeev Exp $ */
+/* $Id: render_handler_ogl.cpp,v 1.53 2006/11/08 15:55:12 alexeev Exp $ */
 
 //#include "gnash.h"
 #include "render_handler.h"
@@ -336,7 +336,9 @@
                        GLenum rgb[3] = {GL_RED, GL_GREEN, GL_BLUE}; 
 
                        unsigned char*   ptr = m_data;
-                       glRasterPos2f(fabs(a.m_x), fabs(a.m_y));        //hack
+                       float xpos = a.m_x < 0 ? 0.0f : a.m_x;  //hack
+                       float ypos = a.m_y < 0 ? 0.0f : a.m_y;  //hack
+                       glRasterPos2f(xpos, ypos);      //hack
                        for (int i = 0; i < 3; ++i)
                        {
                                float zx = w_bounds / (float) planes[i].w;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]