|
62 | 62 | kGraphicsShadows = "Graphics.Shadow.Enable"
|
63 | 63 | kGraphicsVerticalSync = "Graphics.EnableVSync"
|
64 | 64 | kGraphicsShadowQuality = "Graphics.Shadow.VisibleDistance"
|
| 65 | +kGraphicsOutputScale = "Graphics.OutputScale" |
65 | 66 |
|
66 |
| -CmdList = [kGraphicsWidth, kGraphicsHeight, kGraphicsColorDepth, kGraphicsWindowed, kGraphicsTextureQuality, kGraphicsAntiAliasLevel, kGraphicsAnisotropicLevel, kGraphicsQualityLevel, kGraphicsShadows, kGraphicsVerticalSync, kGraphicsShadowQuality] |
67 |
| -DefaultsList = ["800", "600", "32", "false", "2", "0", "0", "2", "true", "false", "0"] |
| 67 | +CmdList = [kGraphicsWidth, kGraphicsHeight, kGraphicsColorDepth, kGraphicsWindowed, kGraphicsTextureQuality, kGraphicsAntiAliasLevel, kGraphicsAnisotropicLevel, kGraphicsQualityLevel, kGraphicsShadows, kGraphicsVerticalSync, kGraphicsShadowQuality, kGraphicsOutputScale] |
| 68 | +DefaultsList = ["800", "600", "32", "false", "2", "0", "0", "2", "true", "false", "0", "100"] |
68 | 69 |
|
69 | 70 | def ConstructFilenameAndPath():
|
70 | 71 | global gFilenameAndPath
|
@@ -120,9 +121,9 @@ def ReadIni():
|
120 | 121 | ConstructFilenameAndPath()
|
121 | 122 | gIniFile.writeFile(gFilenameAndPath)
|
122 | 123 |
|
123 |
| -def SetGraphicsOptions(width, heigth, colordepth, windowed, texquality, aaLevel, anisoLevel, qualityLevel, useShadows, vsync, shadowqual): |
| 124 | +def SetGraphicsOptions(width, heigth, colordepth, windowed, texquality, aaLevel, anisoLevel, qualityLevel, useShadows, vsync, shadowqual, outputScale): |
124 | 125 | if gIniFile:
|
125 |
| - paramList = [width, heigth, colordepth, windowed, texquality, aaLevel, anisoLevel, qualityLevel, useShadows, vsync, shadowqual] |
| 126 | + paramList = [width, heigth, colordepth, windowed, texquality, aaLevel, anisoLevel, qualityLevel, useShadows, vsync, shadowqual, outputScale] |
126 | 127 | for idx in range(len(CmdList)):
|
127 | 128 | entry,junk = gIniFile.findByCommand(CmdList[idx])
|
128 | 129 | val = str(paramList[idx])
|
|
0 commit comments