Lines Matching defs:customModes
958 } customModes[MAX_CUSTOM_MODES] = {0};
966 RT_ZERO(customModes);
997 customModes[curMode].xres = xres;
998 customModes[curMode].yres = yres;
999 customModes[curMode].bpp = bpp;
1032 if ( (!customModes[tableIndex].xres)
1033 || (!customModes[tableIndex].yres)
1034 || (!customModes[tableIndex].bpp))
1040 RTPrintf("writing mode %d (%dx%dx%d)\n", modeIndex, customModes[tableIndex].xres, customModes[tableIndex].yres, customModes[tableIndex].bpp);
1043 status = RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].xres,
1044 sizeof(customModes[tableIndex].xres));
1046 RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].yres,
1047 sizeof(customModes[tableIndex].yres));
1049 RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].bpp,
1050 sizeof(customModes[tableIndex].bpp));
1072 for (int i = 0; i < (sizeof(customModes) / sizeof(customModes[0])); i++)
1074 if ( !customModes[i].xres
1075 || !customModes[i].yres
1076 || !customModes[i].bpp)
1080 customModes[i].xres, customModes[i].yres, customModes[i].bpp);
1120 if ( customModes[i].xres == xres
1121 && customModes[i].yres == yres
1122 && customModes[i].bpp == bpp
1133 if (!customModes[i].xres)
1135 customModes[i].xres = xres;
1136 customModes[i].yres = yres;
1137 customModes[i].bpp = bpp;
1168 if ( (customModes[i].xres == xres)
1169 && (customModes[i].yres == yres)
1170 && (customModes[i].bpp == bpp))
1173 RT_ZERO(customModes[i]);