Poor VGA resolution with fpc 1.0.4
Hi,
after having searched google and nothing appropriate found I post the
things here. My old fpc 0.99.14 rejected to link programs using the
graph unit:
Free Pascal Compiler version 0.99.14 [2000/01/27] for i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling trect.pas
Assembling trect
Linking trect
/usr/lib/fpc/0.99.14/units/linux/rtl/cprt0.o: In function `_start':
/usr/lib/fpc/0.99.14/units/linux/rtl/cprt0.o(.text+0x28): undefined
reference to `__libc_init'
/usr/lib/fpc/0.99.14/units/linux/rtl/cprt0.o(.text+0x35): undefined
reference to `__setfpucw'
Warning: Error while linking
Closing script ppas.sh
16 Lines compiled, 1.0 sec
So I decided to upgrade to 1.0.4 prior to report a possibly obsolete
bug. The upgrade told me weird things:
/usr/lib/fpc/1.0.4/samplecfg: [: ==: binary operator expected
Write permission in /etc.
/usr/lib/fpc/1.0.4/samplecfg: [: ==: binary operator expected
Could not save old config. Bailing out...
Nevertheless the prog I reduced the original one to now linked
successfully. The prog produced the following messages:
c0c60
Int 0x10 is not in rom(0115:0114)
No Vesa Bios detected
Try running vga_reset
Using VGA driver
359x479
I had to hit the Enter key twice! in order to terminate the prog. The
resolution is by far poorer than expected.
Any ideas? What did/do I wrong? The machine is a PIII with Matrox G100
running (upgraded) RH6.2 (and an old P166 box which shows the same
0.99.14 effect)
Program source:
program trect;
uses graph;
var gd, gm, width, height: integer;
begin
gd := detect;
InitGraph( gd, gm, '' );
width := getmaxx;
height := getmaxy;
rectangle( width div 4, height div 4, (width*3)div 4, (height*3)div 4
);
readln;
closegraph;
writeln;
writeln( width,'x',height );
end.
TIA
Herbert