Browse Source

* fixed a bug in graph.OutText and graph.OutTextXY when the unit has
been compiled with range checking on

git-svn-id: trunk@35481 -

nickysn 8 years ago
parent
commit
f353416fd4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/graph/src/inc/gtext.inc

+ 4 - 4
packages/graph/src/inc/gtext.inc

@@ -492,7 +492,7 @@ end;
                                   PutPixel(xpos+k,j+y,CurrentColor)
                                   PutPixel(xpos+k,j+y,CurrentColor)
                                 else if DrawTextBackground then
                                 else if DrawTextBackground then
                                   PutPixel(xpos+k,j+y,CurrentBkColor);
                                   PutPixel(xpos+k,j+y,CurrentBkColor);
-                                fontbitmapbyte:=fontbitmapbyte shl 1;
+                                fontbitmapbyte:=byte(fontbitmapbyte shl 1);
                               end;
                               end;
                           end;
                           end;
                       end
                       end
@@ -521,7 +521,7 @@ end;
                                     end;
                                     end;
                                   Inc(k);
                                   Inc(k);
                                   Inc(cnt2,charsize);
                                   Inc(cnt2,charsize);
-                                  fontbitmapbyte:=fontbitmapbyte shl 1;
+                                  fontbitmapbyte:=byte(fontbitmapbyte shl 1);
                                 end;
                                 end;
                            end;
                            end;
                           Inc(j);
                           Inc(j);
@@ -552,7 +552,7 @@ end;
                              PutPixel(xpos+j,ypos-k,CurrentColor)
                              PutPixel(xpos+j,ypos-k,CurrentColor)
                            else if DrawTextBackground then
                            else if DrawTextBackground then
                              PutPixel(xpos+j,ypos-k,CurrentBkColor);
                              PutPixel(xpos+j,ypos-k,CurrentBkColor);
-                           fontbitmapbyte:=fontbitmapbyte shl 1;
+                           fontbitmapbyte:=byte(fontbitmapbyte shl 1);
                          end;
                          end;
                      end;
                      end;
                  end
                  end
@@ -581,7 +581,7 @@ end;
                                end;
                                end;
                              Inc(k);
                              Inc(k);
                              Inc(cnt2,charsize);
                              Inc(cnt2,charsize);
-                             fontbitmapbyte:=fontbitmapbyte shl 1;
+                             fontbitmapbyte:=byte(fontbitmapbyte shl 1);
                            end;
                            end;
                       end;
                       end;
                      Inc(j);
                      Inc(j);