Ignore:
Timestamp:
Aug 12, 2011, 6:33:15 PM (12 years ago)
Author:
sam
Message:

ps3: until we know how to retrieve and change the screen resolution from
within the Video class, just store what the GL context tells us and stick
to that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r808 r820  
    3434private:
    3535    static mat4 proj_matrix, view_matrix;
    36 #if defined ANDROID_NDK
     36#if defined ANDROID_NDK || defined __CELLOS_LV2__
    3737    static vec2i saved_viewport;
    3838#endif
     
    4242mat4 VideoData::view_matrix;
    4343
    44 #if defined ANDROID_NDK
     44#if defined ANDROID_NDK || defined __CELLOS_LV2__
    4545vec2i VideoData::saved_viewport = 0;
    4646#endif
     
    6565    glViewport(0, 0, size.x, size.y);
    6666
    67 #if defined ANDROID_NDK
     67#if defined ANDROID_NDK || defined __CELLOS_LV2__
    6868    VideoData::saved_viewport = size;
    6969#endif
     
    183183#elif defined __CELLOS_LV2__
    184184    // FIXME: use psglCreateDeviceAuto && psglGetDeviceDimensions
    185     return vec2i(1920, 1080);
     185    return VideoData::saved_viewport;
    186186#else
    187187    GLint v[4];
Note: See TracChangeset for help on using the changeset viewer.