diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-01 18:03:10 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-06 20:28:20 +0200 |
| commit | f09e17c3c564e8310125a10c03397cbf473ff643 (patch) | |
| tree | 8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /test/list_visuals.cxx | |
| parent | b0e0c355edaa2e23148cb0260ada907aec930f05 (diff) | |
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
Diffstat (limited to 'test/list_visuals.cxx')
| -rw-r--r-- | test/list_visuals.cxx | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/test/list_visuals.cxx b/test/list_visuals.cxx index ebda7ef8e..a21e80ede 100644 --- a/test/list_visuals.cxx +++ b/test/list_visuals.cxx @@ -1,6 +1,4 @@ // -// "$Id$" -// // Visual list utility for the Fast Light Tool Kit (FLTK). // // List all the visuals on the screen, and dumps anything interesting @@ -17,11 +15,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // -// Please report all bugs and problems on the following page: +// Please see the following page on how to report bugs and issues: // -// http://www.fltk.org/str.php +// https://www.fltk.org/bugs.php // #if defined(_WIN32) || defined(__APPLE__) @@ -101,8 +99,8 @@ static void print_mask(XVisualInfo* p) { else new_what = '?'; if (new_what != what) { if (what && (what != '?' || print_anything)) { - q += sprintf(q,"%d%c", n, what); - print_anything = 1; + q += sprintf(q,"%d%c", n, what); + print_anything = 1; } what = new_what; n = 1; @@ -132,10 +130,10 @@ void list_visuals() { Atom actualType; int actualFormat; if (!XGetWindowProperty(fl_display, RootWindow(fl_display, fl_screen), - overlayVisualsAtom, 0L, 10000L, False, - overlayVisualsAtom, &actualType, &actualFormat, - &sizeData, &bytesLeft, - (unsigned char **) &overlayInfo)) + overlayVisualsAtom, 0L, 10000L, False, + overlayVisualsAtom, &actualType, &actualFormat, + &sizeData, &bytesLeft, + (unsigned char **) &overlayInfo)) numoverlayinfo = int(sizeData/4); } @@ -145,7 +143,7 @@ void list_visuals() { int nmbuf = 0, nsbuf = 0; if (XmbufQueryExtension(fl_display,&event_base, &error_base)) { XmbufGetScreenInfo(fl_display,RootWindow(fl_display,fl_screen), - &nmbuf, &mbuf, &nsbuf, &sbuf); + &nmbuf, &mbuf, &nsbuf, &sbuf); } #endif @@ -176,7 +174,7 @@ void list_visuals() { int j = pfv ? pfv->bits_per_pixel : 0; printf(" %2ld: %s %2d/%d", p->visualid, ClassNames[p->c_class], - p->depth, j); + p->depth, j); if (j < 10) putchar(' '); print_mask(p); @@ -184,11 +182,11 @@ void list_visuals() { for (j=0; j<numoverlayinfo; j++) { OverlayInfo *o = &overlayInfo[j]; if (o->overlay_visual == long(p->visualid)) { - printf(" overlay("); - if (o->transparent_type==1) printf("transparent pixel %ld, ",o->value); - else if (o->transparent_type==2) printf("transparent mask %ld, ",o->value); - else printf("opaque, "); - printf("layer %ld)", o->layer); + printf(" overlay("); + if (o->transparent_type==1) printf("transparent pixel %ld, ",o->value); + else if (o->transparent_type==2) printf("transparent mask %ld, ",o->value); + else printf("opaque, "); + printf("layer %ld)", o->layer); } } @@ -196,12 +194,12 @@ void list_visuals() { for (j=0; j<nmbuf; j++) { XmbufBufferInfo *m = &mbuf[j]; if (m->visualid == p->visualid) - printf(" multibuffer(%d)", m->max_buffers); + printf(" multibuffer(%d)", m->max_buffers); } for (j=0; j<nsbuf; j++) { XmbufBufferInfo *m = &sbuf[j]; if (m->visualid == p->visualid) - printf(" stereo multibuffer(%d)", m->max_buffers); + printf(" stereo multibuffer(%d)", m->max_buffers); } #endif @@ -229,7 +227,3 @@ int main(int argc, char **argv) { return 0; } #endif - -// -// End of "$Id$". -// |
