Compiling test/colbrowser

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2016-03-08 15:49:45 +00:00
parent bcb756da38
commit 58eb525366

View File

@ -28,7 +28,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#if !defined(WIN32) && !defined(__APPLE__) #if !defined(WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
#include "list_visuals.cxx" #include "list_visuals.cxx"
#endif #endif
@ -114,7 +114,7 @@ int main(int argc, char ** argv) {
" - : default visual\n" " - : default visual\n"
" r : call Fl::visual(FL_RGB)\n" " r : call Fl::visual(FL_RGB)\n"
" c : call Fl::own_colormap()\n",argv[0]); " c : call Fl::own_colormap()\n",argv[0]);
#if !defined(WIN32) && !defined(__APPLE__) #if !defined(WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
printf(" # : use this visual with an empty colormap:\n"); printf(" # : use this visual with an empty colormap:\n");
list_visuals(); list_visuals();
#endif #endif
@ -127,7 +127,7 @@ int main(int argc, char ** argv) {
} else if (argv[i][0] == 'c') { } else if (argv[i][0] == 'c') {
Fl::own_colormap(); Fl::own_colormap();
} else if (argv[i][0] != '-') { } else if (argv[i][0] != '-') {
#if !defined(WIN32) && !defined(__APPLE__) #if !defined(WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
int visid = atoi(argv[i]); int visid = atoi(argv[i]);
fl_open_display(); fl_open_display();
XVisualInfo templt; int num; XVisualInfo templt; int num;