Changeset 816 for trunk/src/kernel32/winres.cpp
- Timestamp:
- Sep 4, 1999, 2:42:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winres.cpp
r761 r816 1 /* $Id: winres.cpp,v 1.1 4 1999-08-31 17:15:30sandervl Exp $ */1 /* $Id: winres.cpp,v 1.15 1999-09-04 12:41:46 sandervl Exp $ */ 2 2 3 3 /* … … 331 331 } 332 332 //****************************************************************************** 333 //return size of converted win32 resource 334 //****************************************************************************** 335 ULONG 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 //****************************************************************************** 333 368 //****************************************************************************** 334 369 PVOID Win32Resource::convertResource(void *win32res) 335 370 { 336 ULONGcvtressize;371 int cvtressize; 337 372 338 373 switch(type) { … … 342 377 343 378 case NTRT_CURSOR: 344 return ConvertCursor((CursorComponent *)win32res, ressize );379 return ConvertCursor((CursorComponent *)win32res, ressize, &cvtressize); 345 380 346 381 case NTRT_GROUP_CURSOR: … … 351 386 352 387 case NTRT_ICON: 353 return ConvertIcon((WINBITMAPINFOHEADER *)win32res, ressize );388 return ConvertIcon((WINBITMAPINFOHEADER *)win32res, ressize, &cvtressize); 354 389 355 390 case NTRT_ACCELERATORS:
Note:
See TracChangeset
for help on using the changeset viewer.