Skip to content
Snippets Groups Projects
Commit 7f1773b2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 1968a4b1
No related branches found
No related tags found
No related merge requests found
// $Id: Draw.cpp,v 1.25 2001-08-06 16:47:57 geuzaine Exp $
// $Id: Draw.cpp,v 1.26 2001-08-14 13:23:40 geuzaine Exp $
#include "Gmsh.h"
#include "GmshUI.h"
......@@ -87,7 +87,7 @@ void Orthogonalize(int x, int y){
(GLdouble)(CTX.viewport[3]-y),
5.0,
5.0,
CTX.viewport);
(GLint*)CTX.viewport);
Va = (GLdouble)(CTX.viewport[3]-CTX.viewport[1]) /
(GLdouble)(CTX.viewport[2]-CTX.viewport[0]) ;
......
......@@ -5,7 +5,7 @@
* GL2PS, an OpenGL to Postscript Printing Library
* Copyright (C) 1999-2001 Christophe Geuzaine
*
* $Id: gl2ps.cpp,v 1.25 2001-08-06 12:26:26 geuzaine Exp $
* $Id: gl2ps.cpp,v 1.26 2001-08-14 13:23:40 geuzaine Exp $
*
* E-mail: Christophe.Geuzaine@AdValvas.be
* URL: http://www.geuz.org/gl2ps/
......@@ -133,7 +133,7 @@ GLvoid *gl2psListPointer(GL2PSlist *list, GLint index){
}
GLvoid gl2psListSort(GL2PSlist *list,
GLint (*fcmp)(const GLvoid *a, const GLvoid *b)){
int (*fcmp)(const void *a, const void *b)){
qsort(list->array, list->n, list->size, fcmp);
}
......@@ -433,7 +433,7 @@ GLvoid gl2psDivideQuad(GL2PSprimitive *quad,
(*t1)->boundary = ((quad->boundary & 4) ? 2 : 0) | ((quad->boundary & 4) ? 2 : 0);
}
int gl2psCompareDepth(const GLvoid *a, const GLvoid *b){
int gl2psCompareDepth(const void *a, const void *b){
GL2PSprimitive *q,*w;
GLfloat diff;
......@@ -448,7 +448,7 @@ int gl2psCompareDepth(const GLvoid *a, const GLvoid *b){
return 0;
}
GLint gl2psTrianglesFirst(const GLvoid *a, const GLvoid *b){
int gl2psTrianglesFirst(const void *a, const void *b){
GL2PSprimitive *q,*w;
q = *(GL2PSprimitive**)a;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment