Changeset 25 in svn for trunk/zasc/app_c/DST_WinMTSHot.c


Ignore:
Timestamp:
Mar 25, 2015 5:05:03 PM (11 years ago)
Author:
jglee
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zasc/app_c/DST_WinMTSHot.c

    r17 r25  
    325325                this->DrawTextUni(this, 0, 0, this->rect.w, this->rect.h, CDisplayModeWin_GetString(CDisplayModeWin_nDMPos), &(this->font)); 
    326326                 
    327                 this->RegisterKey(this, VK_ZOOM, true, 0, 0); 
     327                this->RegisterKey(this, VK_DISPLAY_MODE, true, 0, 0); 
    328328                this->RegisterKey(this, VK_CANCEL, true, 0, 0); 
     329        } 
     330 
     331        bool CDisplayModeWin_getTR_AspectRatio() 
     332        { 
     333                DS_U16 w = 0, h = 0, fps = 0; 
     334                bool bWide = false, bInterlace = false; 
     335                DST_GetVideoSize(&w, &h, &fps, &bInterlace, &bWide); 
     336                 
     337                return (!bWide); 
     338        } 
     339 
     340        DS_U8 CDisplayModeWin_getAspectRatioIndex() 
     341        { 
     342                if(CDisplayModeWin_getTR_AspectRatio()) return 1; 
     343                else return 3; 
    329344        } 
    330345 
     
    334349                switch (key) 
    335350                { 
    336                         case VK_ZOOM: 
    337                                 DST_UI_SetAspect(DST_UI_GetAspect() < 2 ? DST_UI_GetAspect()+1 : 0); 
     351                        case VK_DISPLAY_MODE: 
     352                                if(CDisplayModeWin_getAspectRatioIndex() != 1) 
     353                                { 
     354                                        int value = DST_UI_GetAspect()+1; 
     355                                        if(value>=CDisplayModeWin_getAspectRatioIndex()) value = 0; 
     356                                        DST_UI_SetAspect(value); 
     357                                } 
    338358                                this->Show(this); 
    339359                                break; 
Note: See TracChangeset for help on using the changeset viewer.