IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 3:23:01 PM (21 years ago)
Author:
eugene
Message:

substantial work to move kii/kapa call into libkapa, unify RotFont, bDraw functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kii/picture/Resize.c

    r5700 r5852  
    11# include "Ximage.h"
    2 # define SCAN \
    3   status = read (layout[0].Ximage, buffer, 16); \
    4   buffer[16] = 0; \
    5   sscanf (buffer, "%*s %d", &Nbytes); \
    6   status = read (layout[0].Ximage, buffer, Nbytes); \
    7   buffer[status] = 0; /* make the string easy to parse */ \
    8   (DEBUG) && fprintf (stderr, "buffer: <%s>\n", buffer); \
    9 
    102
    113int Resize (Graphic *graphic, Layout *layout) {
    124 
    13   int status, Nbytes;
    145  unsigned int NX, NY;
    15   char buffer[128];
    166
    17   SCAN;
    18   sscanf (buffer, "%d %d", &NX, &NY);
     7  KiiScanMessage (layout[0].Ximage, "%d %d", &NX, &NY);
    198
    209  NX += ZOOM_X + 3*PAD1 + 25;
Note: See TracChangeset for help on using the changeset viewer.