]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused parameter to 'cb_glutinit'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 6 May 2022 00:46:30 +0000 (17:46 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Jun 2022 16:21:54 +0000 (09:21 -0700)
ci/clang_format.py
cmd/smyrna/glutrender.c
cmd/smyrna/glutrender.h
cmd/smyrna/main.c

index e39f3082de06e5fd296798e2bfac32958d19b21d..8db4d64c9b39a85ec5f7f18720b689d7dba4b6b8 100644 (file)
@@ -150,7 +150,6 @@ EXCLUDE = (
   "cmd/smyrna/gltemplate.c",
   "cmd/smyrna/gltemplate.h",
   "cmd/smyrna/glutrender.c",
-  "cmd/smyrna/glutrender.h",
   "cmd/smyrna/gui/appmouse.c",
   "cmd/smyrna/gui/appmouse.h",
   "cmd/smyrna/gui/callbacks.c",
index 941f3babccbfd0d264a74a56606efc8ebebe3477..71da494cf4003feb85c17468862174af80e73de7 100644 (file)
@@ -234,13 +234,9 @@ static int cb_windowed_mode(int w,int h)
     
 }
 
-int cb_glutinit(int x,int y,int w,int h, int bits,int s_rate,int fullscreen,int* argcp, char *argv[],char* optArg)
-{
+int cb_glutinit(int w, int h, int fullscreen, int *argcp, char *argv[], char *optArg) {
     /*
-    x,y:window position , unless in full screen mode
     w,h: width and height of the window in pixels
-    bits: display color bit count
-    s_rate: for full screen mode this value represents refresh rate in hertz
     fullscreen: if it will be a fullscreen window,
     argcp argv: main function's parameters, required for glutinit
     */
index 4b02adf2edf4163d603df3f4768d6704e047683a..90b307abb10b0cf4192def9a1e5d5250a233c8f1 100644 (file)
@@ -1,3 +1,3 @@
 #pragma once
 
-    int cb_glutinit(int x,int y,int w,int h, int bits,int s_rate,int fullscreen,int* argcp, char *argv[],char* optArg);
+int cb_glutinit(int w, int h, int fullscreen, int *argcp, char *argv[], char *optArg);
index 9f630146625c0802e9bac417056b84dcbbaadf70..382c12ad074fe5fdc0fc8dbc2c063d0a43745232 100644 (file)
@@ -243,7 +243,7 @@ int main(int argc, char *argv[])
        view->initFile=1;
 
     if(view->guiMode==GUI_FULLSCREEN)
-       cb_glutinit(0,0,800,600,32,75,1,&argc,argv,view->optArg);
+       cb_glutinit(800, 600, 1, &argc, argv, view->optArg);
     else
        windowedMode(argc, argv);
 #ifdef G_OS_WIN32