Waldemar Schultz escribió:
from my experiments with grx2.3.2 the example should read as follows:
Example, a white line 3 bits wide(thick) and pattern 6 bits draw, 4 bits nodraw:
GrLineOption mylineop; ... mylineop.lno_color = GrWhite(); mylineop.lno_width = 3; mylineop.lno_pattlen = 2; mylineop.lno_dashpat = "\x06,\x04";
white, 3 pixels wide, 2 pattern items: pattern 6 bits draw, 4 bits nodraw
Thanks, you are right, but it must be "\x06\x04" without the "," ok?.
============ from my experiments with grx2.3.2 the note should read as follows:
(note that 'bg' equal to 'GrNOCOLOR' make the background transparent).
=>#define GrNOCOLOR (GrXOR | 0) /* GrNOCOLOR is used for "no" color */
Opps!, you are right again, thanks. But I prefer "GrBlack() | GrOR", because a GrColor constant is defined like "color | operation". Black color (= 0) | actual bit color = actual bit color. GrNOCOLOR works because 0 | GrXOR == 0 | GrOR.
BTW one further question: do you know what would be necessary to change in the sources of GRX to achieve that the TEXT screen is not cleared on exit()? What I want is the following fragment should show the message without any additional getch() before exit().
... GrSetMode(GR_default_text); printf("There were some errors.\n"); exit(1);
I know what do you mean, I have the same problem. I will try to find it when I will have the time.
Thanks again for your report, please feel free to mail me if you found any other errors in the user's manual.
M.Alvarez