Ignore:
Timestamp:
Sep 4, 1999, 2:42:10 PM (26 years ago)
Author:
sandervl
Message:

icongroup & cursorgroup fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winres.cpp

    r761 r816  
    1 /* $Id: winres.cpp,v 1.14 1999-08-31 17:15:30 sandervl Exp $ */
     1/* $Id: winres.cpp,v 1.15 1999-09-04 12:41:46 sandervl Exp $ */
    22
    33/*
     
    331331}
    332332//******************************************************************************
     333//return size of converted win32 resource
     334//******************************************************************************
     335ULONG Win32Resource::getOS2Size()
     336{
     337  switch(type) {
     338    case NTRT_NEWBITMAP:
     339    case NTRT_BITMAP:
     340        return QueryConvertedBitmapSize((WINBITMAPINFOHEADER *)winresdata, ressize);
     341
     342    case NTRT_CURSOR:
     343        return QueryConvertedCursorSize((CursorComponent *)winresdata, ressize);
     344
     345    case NTRT_ICON:
     346        return QueryConvertedIconSize((WINBITMAPINFOHEADER *)winresdata, ressize);
     347
     348    case NTRT_GROUP_ICON:
     349    case NTRT_GROUP_CURSOR:
     350    case NTRT_ACCELERATORS:
     351    case NTRT_NEWMENU:
     352    case NTRT_MENU:
     353    case NTRT_NEWDIALOG:
     354    case NTRT_DIALOG:
     355    case NTRT_FONTDIR:
     356    case NTRT_FONT:
     357    case NTRT_MESSAGETABLE:
     358    case NTRT_RCDATA:
     359    case NTRT_VERSION:
     360    case NTRT_STRING:
     361    default:
     362        dprintf(("Win32Resource::getOS2Size SHOULDN'T BE CALLED for this resource type (%d) (NOT IMPLEMENTED)!!", type));
     363        break;
     364  }
     365  return 0;
     366}
     367//******************************************************************************
    333368//******************************************************************************
    334369PVOID Win32Resource::convertResource(void *win32res)
    335370{
    336  ULONG cvtressize;
     371 int cvtressize;
    337372
    338373  switch(type) {
     
    342377
    343378    case NTRT_CURSOR:
    344         return ConvertCursor((CursorComponent *)win32res, ressize);
     379        return ConvertCursor((CursorComponent *)win32res, ressize, &cvtressize);
    345380
    346381    case NTRT_GROUP_CURSOR:
     
    351386
    352387    case NTRT_ICON:
    353         return ConvertIcon((WINBITMAPINFOHEADER *)win32res, ressize);
     388        return ConvertIcon((WINBITMAPINFOHEADER *)win32res, ressize, &cvtressize);
    354389
    355390    case NTRT_ACCELERATORS:
Note: See TracChangeset for help on using the changeset viewer.