Mariano Alvarez Fernandez schrieb:
Hi.
I think it's not much interest in GRX nowadays. Anyway here is a
pre-release for 2.4.5, mostly win32 related:
Download it from:
http://grx.gnu.de/download/grx245p1.zip
MD5SUM for the package:
c7d5f1027f171b713dbbda38fb8f5242 *grx245p1.zip
Only the zip archive is provided, but note, the zip archive expand to grx245, not to the contrib directory.
Changes:
02/02/11 The makefile install target installs the grxprint.h file if printer support is activate 02/02/11 Inprovements to the win32 driver: Now the GRX window is properly closed, so the previous app gets the focus. 02/02/02 Inprovements to the win32 driver: The w32 imput queue implemented as a circular queue. All the input related code moved to w32inp.c from vd_win32.c The main window is created in WinMain, so the grx program can use other videodrivers like the memory one. Now memtest works. Now the printer stuff compiles and run, checked with the DeskJet driver, printing to a file and them "copy file lpt1", but the printout is not totally correct (?).
Thank you for your efforts.
The following program exhibits problems with the window's 'focus' in windows console applications.
/*grxhello.c*/ #include <string.h> #include <grx20.h> #include <grxkeys.h> #include <stdio.h> #include <conio.h> #include <stdlib.h>
int GRXMain() { char *message = "Hello, GRX world"; int x, y; GrTextOption grt;
printf("%s\n",message); getch();
GrSetMode( GR_default_graphics );
grt.txo_font = &GrDefaultFont; grt.txo_fgcolor.v = GrWhite(); grt.txo_bgcolor.v = GrBlack(); grt.txo_direct = GR_TEXT_RIGHT; grt.txo_xalign = GR_ALIGN_CENTER; grt.txo_yalign = GR_ALIGN_CENTER; grt.txo_chrtype = GR_BYTE_TEXT;
GrBox( 0,0,GrMaxX(),GrMaxY(),GrWhite() ); GrBox( 4,4,GrMaxX()-4,GrMaxY()-4,GrWhite() );
x = GrMaxX()/2; y = GrMaxY()/2; GrDrawString( message,strlen( message ),x,y,&grt );
GrKeyRead();
GrSetMode( GR_default_text ); printf("%s\n",message); getch();
return 0; }
Win98>gcc -v Reading specs from C:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-7/specs gcc version 2.95.3-7 (mingw experimental)
Win98>gcc -c grxhello.c -g -O2 -W -Wall Win98>gcc grxhello.o -o grxhello.exe -lm -lgrx20 -mwindows -mconsole