VirtualBox

Changeset 3346 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 2, 2007 11:39:18 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22538
Message:

Indent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp

    r3338 r3346  
    162162
    163163    PIXELFORMATDESCRIPTOR pfd = {0};
    164         int format;
    165        
    166         pClient->hdc = GetDC(pClient->hwnd);
    167        
    168         pfd.nSize       = sizeof(pfd);
    169         pfd.nVersion    = 1;
    170         pfd.dwFlags     = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
    171         pfd.iPixelType  = iPixelType;
    172         pfd.cColorBits  = cColorBits;
    173         pfd.cDepthBits  = cDepthBits;
    174         pfd.iLayerType  = PFD_MAIN_PLANE;
     164    int format;
     165
     166    pClient->hdc = GetDC(pClient->hwnd);
     167
     168    pfd.nSize       = sizeof(pfd);
     169    pfd.nVersion    = 1;
     170    pfd.dwFlags     = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
     171    pfd.iPixelType  = iPixelType;
     172    pfd.cColorBits  = cColorBits;
     173    pfd.cDepthBits  = cDepthBits;
     174    pfd.iLayerType  = PFD_MAIN_PLANE;
    175175    uint32_t lasterr = glGetError();
    176         format = ChoosePixelFormat(pClient->hdc, &pfd);
     176    format = ChoosePixelFormat(pClient->hdc, &pfd);
    177177    lasterr = glGetError();
    178         SetPixelFormat(pClient->hdc, format, &pfd);
    179        
     178    SetPixelFormat(pClient->hdc, format, &pfd);
     179
    180180    lasterr = glGetError();
    181         glrc = wglCreateContext(pClient->hdc);
     181    glrc = wglCreateContext(pClient->hdc);
    182182    lasterr = glGetError();
    183183    Assert(glrc);
     
    274274    }
    275275    PIXELFORMATDESCRIPTOR pfd = {0};
    276         int format;
    277        
    278         pClient->hdc = GetDC(pClient->hwnd);
    279        
    280         pfd.nSize       = sizeof(pfd);
    281         pfd.nVersion    = 1;
    282         pfd.dwFlags     = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
    283         pfd.iPixelType  = iPixelType;
    284         pfd.cColorBits  = cColorBits;
    285         pfd.cDepthBits  = cDepthBits;
    286         pfd.iLayerType  = PFD_MAIN_PLANE;
    287         format = ChoosePixelFormat(pClient->hdc, &pfd);
    288         SetPixelFormat(pClient->hdc, format, &pfd);
    289        
    290         glrc = wglCreateLayerContext(pClient->hdc, iLayerPlane);
     276    int format;
     277
     278    pClient->hdc = GetDC(pClient->hwnd);
     279
     280    pfd.nSize       = sizeof(pfd);
     281    pfd.nVersion    = 1;
     282    pfd.dwFlags     = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
     283    pfd.iPixelType  = iPixelType;
     284    pfd.cColorBits  = cColorBits;
     285    pfd.cDepthBits  = cDepthBits;
     286    pfd.iLayerType  = PFD_MAIN_PLANE;
     287    format = ChoosePixelFormat(pClient->hdc, &pfd);
     288    SetPixelFormat(pClient->hdc, format, &pfd);
     289
     290    glrc = wglCreateLayerContext(pClient->hdc, iLayerPlane);
    291291#else
    292292    AssertFailed();
Note: See TracChangeset for help on using the changeset viewer.

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