mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-18 14:50:24 +02:00
* fixed values of MaxX and MaxY
This commit is contained in:
parent
8339ebc407
commit
b6b0a08c56
@ -512,8 +512,10 @@ end;
|
|||||||
ModeName:=ModeNames[i];
|
ModeName:=ModeNames[i];
|
||||||
// Pretend we are VGA always.
|
// Pretend we are VGA always.
|
||||||
DriverNumber := VGA;
|
DriverNumber := VGA;
|
||||||
MaxX:=ModeInfo.Width;
|
// MaxX is number of pixels in X direction - 1
|
||||||
MaxY:=ModeInfo.height;
|
MaxX:=ModeInfo.Width-1;
|
||||||
|
// same for MaxY
|
||||||
|
MaxY:=ModeInfo.Height-1;
|
||||||
MaxColor := ModeInfo.colors;
|
MaxColor := ModeInfo.colors;
|
||||||
PaletteSize := MaxColor;
|
PaletteSize := MaxColor;
|
||||||
HardwarePages := 0;
|
HardwarePages := 0;
|
||||||
@ -565,7 +567,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.12 2000-03-19 11:20:14 peter
|
Revision 1.13 2000-03-25 19:12:00 florian
|
||||||
|
* fixed values of MaxX and MaxY
|
||||||
|
|
||||||
|
Revision 1.12 2000/03/19 11:20:14 peter
|
||||||
* graph unit include is now independent and the dependent part
|
* graph unit include is now independent and the dependent part
|
||||||
is now in graph.pp
|
is now in graph.pp
|
||||||
* ggigraph unit for linux added
|
* ggigraph unit for linux added
|
||||||
|
Loading…
Reference in New Issue
Block a user