Browse Source

* fixed values of MaxX and MaxY

florian 25 years ago
parent
commit
b6b0a08c56
1 changed files with 8 additions and 3 deletions
  1. 8 3
      rtl/linux/graph.pp

+ 8 - 3
rtl/linux/graph.pp

@@ -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;
-           MaxY:=ModeInfo.height;
+           // MaxX is number of pixels in X direction - 1
+           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