VirtualBox

Ignore:
Timestamp:
Jan 31, 2008 11:11:03 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27715
Message:

FE/Qt: Minor style corrections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r6645 r6649  
    464464
    465465#include <Carbon/Carbon.h>
     466
    466467class VBoxQuartz2DFrameBuffer : public VBoxFrameBuffer
    467468{
     
    476477    STDMETHOD (SetVisibleRegion) (BYTE *aRectangles, ULONG aCount);
    477478
    478     uchar *address () { return mDataAddress; }
    479     ulong bitsPerPixel () { return CGImageGetBitsPerPixel (mImage); }
    480     ulong bytesPerLine () { return CGImageGetBytesPerRow (mImage); }
    481     ulong pixelFormat () { return mPixelFormat; };
    482     bool usesGuestVRAM () { return mBitmapData == NULL; }
    483 
    484     const CGImageRef imageRef () const { return mImage; }
     479    uchar *address() { return mDataAddress; }
     480    ulong bitsPerPixel() { return CGImageGetBitsPerPixel (mImage); }
     481    ulong bytesPerLine() { return CGImageGetBytesPerRow (mImage); }
     482    ulong pixelFormat() { return mPixelFormat; };
     483    bool usesGuestVRAM() { return mBitmapData == NULL; }
     484
     485    const CGImageRef imageRef() const { return mImage; }
    485486
    486487    void paintEvent (QPaintEvent *pe);
     
    488489
    489490private:
     491
    490492    inline CGRect QRectToCGRect (const QRect &aRect) const
    491493    {
    492         return CGRectMake (aRect.x (), aRect.y (), aRect.width (), aRect.height ());
    493     }
     494        return CGRectMake (aRect.x(), aRect.y(), aRect.width(), aRect.height());
     495    }
     496
    494497    inline QRect mapYOrigin (const QRect &aRect, int aHeight) const
    495498    {
    496         /* The cgcontext has a fliped y-coord relative to the 
     499        /* The cgcontext has a fliped y-coord relative to the
    497500         * qt coord system. So we need some mapping here */
    498         return QRect (aRect.x (), aHeight - (aRect.y () + aRect.height ()), aRect.width (), aRect.height ());
    499     }
    500     void clean ();
    501 
    502     uchar *mDataAddress;
     501        return QRect (aRect.x(), aHeight - (aRect.y() + aRect.height()),
     502                      aRect.width(), aRect.height());
     503    }
     504
     505    void clean();
     506
     507    uchar *mDataAddress;
    503508    void *mBitmapData;
    504509    ulong mPixelFormat;
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