Changeset 4969 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Sep 21, 2007 6:25:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxControl/VBoxControl.cpp
r4968 r4969 696 696 if (hkeyVideo) 697 697 { 698 int i; 699 int fModeExists = 0; 698 700 getCustomModes(hkeyVideo); 699 for (int i = 0; i < MAX_CUSTOM_MODES; i++) 700 { 701 /* item free? */ 702 if (!customModes[i].xres) 701 for (i = 0; i < MAX_CUSTOM_MODES; i++) 702 { 703 /* mode exists? */ 704 if ( customModes[i].xres == xres 705 && customModes[i].yres == yres 706 && customModes[i].bpp == bpp 707 ) 703 708 { 704 customModes[i].xres = xres; 705 customModes[i].yres = yres; 706 customModes[i].bpp = bpp; 707 break; 709 fModeExists = 1; 708 710 } 709 711 } 710 writeCustomModes(hkeyVideo); 712 if (!fModeExists) 713 { 714 for (i = 0; i < MAX_CUSTOM_MODES; i++) 715 { 716 /* item free? */ 717 if (!customModes[i].xres) 718 { 719 customModes[i].xres = xres; 720 customModes[i].yres = yres; 721 customModes[i].bpp = bpp; 722 break; 723 } 724 } 725 writeCustomModes(hkeyVideo); 726 } 711 727 RegCloseKey(hkeyVideo); 712 728 }
Note:
See TracChangeset
for help on using the changeset viewer.