VirtualBox

忽略:
時間撮記:
2007-1-31 下午04:14:04 (18 年 以前)
作者:
vboxsync
訊息:

Main/Frontends: Changed all interface attributes and method parameters that used to use ULONG to pass pointers around; they now use BYTE * for this purpose (should fix problems for 64-bit targets).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r382 r470  
    7373{
    7474public:
    75     VBoxResizeEvent (FramebufferPixelFormat_T f, void *v, unsigned l, int w, int h) :
     75    VBoxResizeEvent (FramebufferPixelFormat_T f, uchar *v, unsigned l, int w, int h) :
    7676        QEvent ((QEvent::Type) VBoxDefs::ResizeEventType), fmt (f), vr (v), lsz (l), wdt (w), hgt (h) {}
    7777    FramebufferPixelFormat_T  pixelFormat() { return fmt; }
    78     void *vram() { return vr; }
     78    uchar *vram() { return vr; }
    7979    unsigned lineSize() { return lsz; }
    8080    int width() { return wdt; }
     
    8282private:
    8383    FramebufferPixelFormat_T fmt;
    84     void *vr;
     84    uchar *vr;
    8585    unsigned lsz;
    8686    int wdt;
     
    204204
    205205    // IFramebuffer COM methods
    206     STDMETHOD(COMGETTER(Address)) (ULONG *aAddress);
     206    STDMETHOD(COMGETTER(Address)) (BYTE **aAddress);
    207207    STDMETHOD(COMGETTER(Width)) (ULONG *aWidth);
    208208    STDMETHOD(COMGETTER(Height)) (ULONG *aHeight);
     
    217217
    218218    STDMETHOD(RequestResize) (FramebufferPixelFormat_T aPixelFormat,
    219                               ULONG aVRAM, ULONG aLineSize,
     219                              BYTE *aVRAM, ULONG aLineSize,
    220220                              ULONG aWidth, ULONG aHeight,
    221221                              BOOL *aFinished);
     
    362362    SDL_Surface *mSurfVRAM;
    363363
    364     void *mPtrVRAM;
     364    uchar *mPtrVRAM;
    365365    ULONG mLineSize;
    366366    FramebufferPixelFormat_T mPixelFormat;
     
    397397    void releaseObjects();
    398398
    399     void setupSurface (FramebufferPixelFormat_T pixelFormat, void *pvVRAM, ULONG lineSize, ULONG w, ULONG h);
    400     void recreateSurface (FramebufferPixelFormat_T pixelFormat, void *pvVRAM, ULONG lineSize, ULONG w, ULONG h);
     399    void setupSurface (FramebufferPixelFormat_T pixelFormat, uchar *pvVRAM, ULONG lineSize, ULONG w, ULONG h);
     400    void recreateSurface (FramebufferPixelFormat_T pixelFormat, uchar *pvVRAM, ULONG lineSize, ULONG w, ULONG h);
    401401    void deleteSurface ();
    402402    void drawRect (ULONG x, ULONG y, ULONG w, ULONG h);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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