; cnc-ddraw - https://github.com/CnCNet/cnc-ddraw - https://cncnet.org

[ddraw]
; ### Optional settings ###
; Use the following settings to adjust the look and feel to your liking


; Stretch to custom resolution, 0 = defaults to the size game requests
width=1068
height=600

; Override the width/height settings shown above and always stretch to fullscreen
; Note: Can be combined with 'windowed=true' to get windowed-fullscreen aka borderless mode
fullscreen=true

; Run in windowed mode rather than going fullscreen
windowed=true

; Maintain aspect ratio - (Requires 'handlemouse=true')
maintas=true

; Windowboxing / Integer Scaling - (Requires 'handlemouse=true')
boxing=false

; Real rendering rate, -1 = screen rate, 0 = unlimited, n = cap
; Note: Does not have an impact on the game speed, to limit your game speed use 'maxgameticks='
maxfps=125

; Vertical synchronization, enable if you get tearing - (Requires 'renderer=auto/opengl/direct3d9')
vsync=true

; Automatic mouse sensitivity scaling  - (Requires 'handlemouse=true')
; Note: Only works if stretching is enabled. Sensitivity will be adjusted according to the size of the window
adjmouse=true

; Preliminary libretro shader support - (Requires 'renderer=opengl') https://github.com/libretro/glsl-shaders
shader=jinc2-sharper.glsl
;6xbrz.glsl

; Window position, -32000 = center to screen
posX=-32000
posY=-32000

; Renderer, possible values: auto, opengl, gdi, direct3d9 (auto = try direct3d9/opengl, fallback = gdi)
renderer=opengl

; Developer mode (don't lock the cursor)
devmode=true

; Show window borders in windowed mode
border=true

; Bits per pixel, possible values: 16, 24 and 32, 0 = auto
bpp=0

; Enable C&C video resize hack - Stretches C&C cutscenes to fullscreen
vhack=false



; ### Compatibility settings ###
; Use the following settings in case there are any issues with the game


; Hide WM_ACTIVATEAPP messages to prevent problems on alt+tab
noactivateapp=false

; Max game ticks per second, possible values: 0-1000
; Note: Can be used to slow down a too fast running game, fix flickering or too fast animations
maxgameticks=0

; Gives cnc-ddraw full control over the mouse cursor (required for adjmouse/boxing/maintas)
; Note: This option only works for games that draw their own cursor and it must be disabled for all other games
handlemouse=true

; Use Waitable Timer Objects rather than timeGetTime+Sleep to limit FPS/Ticks/Flip
; Note: To workaround tearing/stuttering problems, set maxfps 1 lower than screen refresh rate (59 for flip games)
accuratetimers=false

; Force CPU0 affinity, avoids crashes/freezing, *might* have a performance impact
singlecpu=true

; Windows API Hooking, Possible values: 0 = disabled, 1 = IAT Hooking, 2 = Microsoft Detours
; Note: Can be used to fix issues related to new features added by cnc-ddraw such as windowed mode or stretching
hook=1

; Force consistent FPS (Requires 'maxfps=' to be set to a value other than 0)
; Note: Fixes flickering cursor issues in C&C games
forcefps=false



; ### Game specific settings ###
; The following settings override all settings shown above, section name = executable name


[D2SE]
width=1068
height=600
