4 |
/* */ |
/* */ |
5 |
/* Amiga-specific FreeType low-level system interface (body). */ |
/* Amiga-specific FreeType low-level system interface (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 1996-2001, 2002 by */ |
/* Copyright 1996-2001, 2002, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
349 |
ULONG bufsize; |
ULONG bufsize; |
350 |
|
|
351 |
bufsize = ( read_bytes > IOBUF_SIZE ) ? IOBUF_SIZE : read_bytes; |
bufsize = ( read_bytes > IOBUF_SIZE ) ? IOBUF_SIZE : read_bytes; |
352 |
sysfile->iobuf_end = offset + read_bytes - bufsize; |
sysfile->iobuf_end = offset + read_bytes; |
353 |
sysfile->iobuf_start = sysfile->iobuf_end - bufsize; |
sysfile->iobuf_start = sysfile->iobuf_end - bufsize; |
354 |
CopyMem( &buffer[read_bytes - bufsize] , sysfile->iobuf, bufsize ); |
CopyMem( &buffer[read_bytes - bufsize] , sysfile->iobuf, bufsize ); |
355 |
} |
} |