Changeset 3204


Ignore:
Timestamp:
Apr 22, 2007, 4:44:59 PM (18 years ago)
Author:
bird
Message:

_libc_32to16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/perl/os2/OS2/Process/Process.xs

    r3188 r3204  
    10211021    vio->type = type;                   /* BIOS or the loaded font. */
    10221022    vio->cbData = 0xFFFF;               /* How large is my buffer? */
    1023     vio->pbData = _emx_32to16(buf);     /* Wants an 16:16 pointer */
     1023    vio->pbData = _libc_32to16(buf);    /* Wants an 16:16 pointer */
    10241024    if (CheckOSError(VioGetFont( vio, 0 )))
    10251025        croak_with_os2error("Can't get VIO font");
     
    10521052    vio->type = type;                   /* BIOS or the loaded font. */
    10531053    vio->cbData = l;                    /* How large is my buffer? */
    1054     vio->pbData = _emx_32to16(buf);     /* Wants an 16:16 pointer */
     1054    vio->pbData = _libc_32to16(buf);    /* Wants an 16:16 pointer */
    10551055    vio->cxCell = cellwidth;
    10561056    vio->cyCell = cellheight;
     
    11381138        if (count < 0 || count > 256)
    11391139            croak("unexpected palette count");
    1140         vio->colorreg.colorregaddr = (PCH)_emx_32to16(vio->colorreg_padded.rgb);
     1140        vio->colorreg.colorregaddr = (PCH)_libc_32to16(vio->colorreg_padded.rgb);
    11411141        vio->colorreg.numcolorregs = count;             /* 256 is max */
    11421142        vio->colorreg.firstcolorreg = first;
     
    11771177    Copy(s, (char*)vio, size, char);
    11781178    if (what == 3)      /* We expect colors put after VIOCOLORREG */
    1179         vio->colorreg.colorregaddr = (PCH)_emx_32to16(vio->colorreg_padded.rgb);
     1179        vio->colorreg.colorregaddr = (PCH)_libc_32to16(vio->colorreg_padded.rgb);
    11801180
    11811181    if (CheckOSError(VioSetState( (void*)vio, 0 )))
Note: See TracChangeset for help on using the changeset viewer.