Changeset 25 in svn for trunk/zasc/app_c/DST_WinMTSHot.c
- Timestamp:
- Mar 25, 2015 5:05:03 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/zasc/app_c/DST_WinMTSHot.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_WinMTSHot.c
r17 r25 325 325 this->DrawTextUni(this, 0, 0, this->rect.w, this->rect.h, CDisplayModeWin_GetString(CDisplayModeWin_nDMPos), &(this->font)); 326 326 327 this->RegisterKey(this, VK_ ZOOM, true, 0, 0);327 this->RegisterKey(this, VK_DISPLAY_MODE, true, 0, 0); 328 328 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; 329 344 } 330 345 … … 334 349 switch (key) 335 350 { 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 } 338 358 this->Show(this); 339 359 break;
Note: See TracChangeset
for help on using the changeset viewer.
