Diff for /np2/macosx/np2opening.cpp between versions 1.2 and 1.3

version 1.2, 2003/11/03 10:19:43 version 1.3, 2003/11/11 16:33:50
Line 38  PicHandle getBMPfromPath(char* path, Rec Line 38  PicHandle getBMPfromPath(char* path, Rec
     return(getbmp(fsc, srt));      return(getbmp(fsc, srt));
 }  }
   
 PicHandle getBMPfromResource(const char* name, Rect* srt) {  PicHandle getBMPfromResource(const char* name, Rect* srt, const CFStringRef     type) {
     CFURLRef    url = NULL;      CFURLRef    url = NULL;
     FSRef               fsr;      FSRef               fsr;
     FSSpec              fsc;      FSSpec              fsc;
     PicHandle   pict = NULL;      PicHandle   pict = NULL;
           
     url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTRj(name), CFSTR("bmp"), NULL);      url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTRj(name), type, NULL);
     if (url) {      if (url) {
         if (CFURLGetFSRef(url, &fsr)) {          if (CFURLGetFSRef(url, &fsr)) {
             FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, &fsc, NULL);              FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, &fsc, NULL);
Line 60  void openingNP2(void) { Line 60  void openingNP2(void) {
     GrafPtr             port;      GrafPtr             port;
     PicHandle   pict = NULL;      PicHandle   pict = NULL;
   
     pict = getBMPfromResource("nekop2", &srt);      pict = getBMPfromResource("nekop2", &srt, CFSTR("bmp"));
     if (pict) {      if (pict) {
         GetPort(&port);          GetPort(&port);
         SetPortWindowPort(hWndMain);          SetPortWindowPort(hWndMain);

Removed from v.1.2  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>