jdk/src/windows/native/sun/font/lcdglyph.c
changeset 13140 5c57c463f224
parent 5506 202f599c92aa
child 18232 b538b71fb429
equal deleted inserted replaced
13139:917a5a5434a9 13140:5c57c463f224
   407      * that extra "1" was added as padding, so the sub-pixel positioning of
   407      * that extra "1" was added as padding, so the sub-pixel positioning of
   408      * fractional metrics could index into it.
   408      * fractional metrics could index into it.
   409      */
   409      */
   410     imageSize = bytesWidth*height;
   410     imageSize = bytesWidth*height;
   411     glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize);
   411     glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize);
   412     if (malloc == NULL) {
   412     if (glyphInfo == NULL) {
   413         FREE_AND_RETURN;
   413         FREE_AND_RETURN;
   414     }
   414     }
   415     glyphInfo->cellInfo = NULL;
   415     glyphInfo->cellInfo = NULL;
   416     glyphInfo->rowBytes = bytesWidth;
   416     glyphInfo->rowBytes = bytesWidth;
   417     glyphInfo->width = width;
   417     glyphInfo->width = width;