Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2015, 6:05:25 PM (9 years ago)
Author:
muemart
Message:

Add program icon for Windows builds (MSVC only for now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GraphicsManager.cc

    r9675 r10267  
    316316
    317317        Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(Ogre::MIP_UNLIMITED);
     318
     319        //Add program icon
     320#if defined(ORXONOX_PLATFORM_WINDOWS) && defined(_MSC_VER)
     321        HWND hwnd;
     322        this->renderWindow_->getCustomAttribute("WINDOW", (void*)&hwnd);
     323        LONG iconID = (LONG)LoadIcon(GetModuleHandle(0), MAKEINTRESOURCE(101));
     324        SetClassLong(hwnd, GCL_HICON, iconID);
     325#endif
     326
    318327
    319328        // add console commands
Note: See TracChangeset for help on using the changeset viewer.