VirtualBox

Ignore:
Timestamp:
May 8, 2012 6:05:41 PM (13 years ago)
Author:
vboxsync
Message:

Frontends: back out the Framebuffer cleanup, to be retried later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r41215 r41216  
    7575//
    7676
    77 HRESULT VBoxSDLFB::FinalConstruct()
    78 {
    79     return S_OK;
    80 }
    81 
    82 /**
    83  * SDL framebuffer init method. It is called from the main
     77/**
     78 * SDL framebuffer constructor. It is called from the main
    8479 * (i.e. SDL) thread. Therefore it is safe to use SDL calls
    8580 * here.
    86  * @returns COM status code
    8781 * @param fFullscreen    flag whether we start in fullscreen mode
    8882 * @param fResizable     flag whether the SDL window should be resizable
     
    9387 * @param iFixedHeight   fixed SDL height (-1 means not set)
    9488 */
    95 HRESULT VBoxSDLFB::init(uint32_t uScreenId,
    96                         bool fFullscreen, bool fResizable, bool fShowSDLConfig,
    97                         bool fKeepHostRes, uint32_t u32FixedWidth,
    98                         uint32_t u32FixedHeight, uint32_t u32FixedBPP)
     89VBoxSDLFB::VBoxSDLFB(uint32_t uScreenId,
     90                     bool fFullscreen, bool fResizable, bool fShowSDLConfig,
     91                     bool fKeepHostRes, uint32_t u32FixedWidth,
     92                     uint32_t u32FixedHeight, uint32_t u32FixedBPP)
    9993{
    10094    int rc;
    101     LogFlow(("VBoxSDLFB::init\n"));
     95    LogFlow(("VBoxSDLFB::VBoxSDLFB\n"));
     96
     97#if defined (RT_OS_WINDOWS)
     98    refcnt = 0;
     99#endif
    102100
    103101    mScreenId       = uScreenId;
     
    140138    Assert(mScreen);
    141139    mfInitialized = true;
    142 
    143     return S_OK;
    144 }
    145 
    146 void VBoxSDLFB::FinalRelease()
    147 {
    148     uninit();
    149 }
    150 
    151 void VBoxSDLFB::uninit()
    152 {
    153     LogFlow(("VBoxSDLFB::uninit\n"));
     140}
     141
     142VBoxSDLFB::~VBoxSDLFB()
     143{
     144    LogFlow(("VBoxSDLFB::~VBoxSDLFB\n"));
    154145    if (mSurfVRAM)
    155146    {
     
    169160}
    170161
    171 bool VBoxSDLFB::initSDL(bool fShowSDLConfig)
     162bool VBoxSDLFB::init(bool fShowSDLConfig)
    172163{
    173164    LogFlow(("VBoxSDLFB::init\n"));
     
    249240 * @remarks must be called from the SDL thread!
    250241 */
    251 void VBoxSDLFB::uninitSDL()
     242void VBoxSDLFB::uninit()
    252243{
    253244    if (gfSdlInitialized)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette