It has always irritated me how when you run a program in dbc the screen goes black and it changes the screen resolution to 640x480 before reading any commands for display options. How do I make it run in a window by default at 800x600?
I have tried editing the setup.ini file:
[SETTINGS]
TextLanguage=English
TextLanguage-Charset=1
HelpLanguage=English
HelpLanguage-Charset=1
HelpFontSize=0
ExternalEditor="DarkEDIT156\darkedit.exe"
blitflipmode=1
vbcreate=0
vbusage=0
3doverlay=0
runtimetest=1
tracemode=0
windowmode=1
popupoff=0
; Test and Trace Settings
; ----------------
; runtimetest: 0=simple error reporting / 1=advanced error reporting
; tracemode: 0=no trace information / 1=produce trace files
; Compatabilitiy Settings
; ----------------
; windowmode: 0=no window / 1=run in window
; blitoverdraw : 0=normal / 1=Draw All 2D twice
; blitflipmode : 0=double videomem flip / 1=blit to video memory
; runtimetest : 0=no extra error data / 1=produce extra error data
; vbcreate : 0=normal / 1=WriteOnly / 2=No Clip / 3=[1]+[2] / 4=SystemMem
; vbusage : 0=normal / 1=Wait / 2=WriteOnly and Wait / 3=SurfaceMem and Wait
; 3doverlay : 0=normal / 1=Utilize ZBuffer Clear for overlapped 3D rendering
; StartUp Settings
; ----------------
; Use a SETUP.INI file with the [STARTUP] keys below to
; control the initial state of your application:-
; eg. window=1 will start your app in a window
[STARTUP]
window=1
winposx=0
winposy=0
winsizex=800
winsizey=600
; CharSet Codes
; -------------
; DEFAULT_CHARSET 1
; SYMBOL_CHARSET 2
; SHIFTJIS_CHARSET 128
; HANGEUL_CHARSET 129
; HANGUL_CHARSET 129
; GB2312_CHARSET 134
; CHINESEBIG5_CHARSET 136
; OEM_CHARSET 255
; JOHAB_CHARSET 130
; HEBREW_CHARSET 177
; ARABIC_CHARSET 178
; GREEK_CHARSET 161
; TURKISH_CHARSET 162
; VIETNAMESE_CHARSET 163
; THAI_CHARSET 222
; EASTEUROPE_CHARSET 238
; RUSSIAN_CHARSET 204
; MAC_CHARSET 77
; BALTIC_CHARSET 186
and made a "setup.ini" file in the same directory as my program files:
[STARTUP]
window=1
winposx=0
winposy=0
winsizex=800
winsizey=600
but I don't get the desired effect.
Linux related additions:
I am running through Wine on Linux. If I run code without changing the display settings there are no errors, but if I change the resolution or set window on, it still runs ok but after I quit the program an error message pops up:
"Show Details" reveals this crap:
Unhandled exception: page fault on read access to 0x00002c64 in 32-bit code (0x7e0b4406).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7e0b4406 ESP:0033eecc EBP:0033ef24 EFLAGS:00010293( R- -- I S -A- -C)
EAX:00000008 EBX:7e1d8000 ECX:01f1d360 EDX:0033ef4c
ESI:00000001 EDI:007590d5
Stack dump:
0x0033eecc: 7e1db964 00000001 0033ef04 7bc349de
0x0033eedc: 7e1db964 7b88773d 77207369 7b8b0000
0x0033eeec: 7ffdf000 007590d5 0033ef94 7ffd8000
0x0033eefc: 7e1d8000 00000001 0033ef24 7e189884
0x0033ef0c: 7e1db960 7e256000 0033ef74 7e21a232
0x0033ef1c: 01f1c3d8 7e256000 0033ef84 7e22bd78
Backtrace:
=>0 0x7e0b4406 wined3d_device_get_stream_source+0xde() in wined3d (0x0033ef24)
0x7e0b4406 wined3d_device_get_stream_source+0xde in wined3d: movl 0x2c5c(%eax),%ecx
Modules:
Module Address Debug info Name (127 modules)
PE 400000- c82000 Deferred db
ELF 75eb9000-77420000 Deferred libllvm-3.2.so.1
ELF 77420000-777ff000 Deferred libgallium.so.0
ELF 7b800000-7ba44000 Deferred kernel32<elf>
\-PE 7b810000-7ba44000 \ kernel32
ELF 7bc00000-7bce4000 Deferred ntdll<elf>
\-PE 7bc10000-7bce4000 \ ntdll
ELF 7bf00000-7bf04000 Deferred <wine-loader>
ELF 7c045000-7c400000 Deferred libdricore9.1.7.so.1
ELF 7c421000-7c43c000 Deferred mcicda<elf>
\-PE 7c430000-7c43c000 \ mcicda
ELF 7c488000-7c500000 Deferred r600_dri.so
ELF 7d13d000-7d171000 Deferred libtxc_dxtn.so
ELF 7d171000-7d18e000 Deferred libgcc_s.so.1
ELF 7d18e000-7d19a000 Deferred libdrm_radeon.so.1
ELF 7d19a000-7d1a7000 Deferred libdrm.so.2
ELF 7d1a7000-7d1bf000 Deferred libxcb-glx.so.0
ELF 7d1bf000-7d1d6000 Deferred libglapi.so.0
ELF 7d1d6000-7d22f000 Deferred libgl.so.1
ELF 7d250000-7d29d000 Deferred dsound<elf>
\-PE 7d260000-7d29d000 \ dsound
ELF 7d29d000-7d2c9000 Deferred libvorbis.so.0
ELF 7d2c9000-7d441000 Deferred libvorbisenc.so.2
ELF 7d441000-7d491000 Deferred libflac.so.8
ELF 7d491000-7d505000 Deferred libsndfile.so.1
ELF 7d505000-7d54f000 Deferred libdbus-1.so.3
ELF 7d54f000-7d5ba000 Deferred libpulsecommon-3.0.so
ELF 7d5ba000-7d609000 Deferred libpulse.so.0
ELF 7d609000-7d6fb000 Deferred libasound.so.2
ELF 7d6fb000-7d840000 Deferred oleaut32<elf>
\-PE 7d710000-7d840000 \ oleaut32
ELF 7d8a1000-7d8b8000 Deferred libresolv.so.2
ELF 7d8b8000-7d8c0000 Deferred libogg.so.0
ELF 7d8c0000-7d8c7000 Deferred libasyncns.so.0
ELF 7d8c7000-7d8d1000 Deferred libwrap.so.0
ELF 7d8d1000-7d8db000 Deferred libjson.so.0
ELF 7d8db000-7d8e4000 Deferred librt.so.1
ELF 7d8e7000-7d8ee000 Deferred libffi.so.6
ELF 7d8ee000-7d8f3000 Deferred libxcb-dri2.so.0
ELF 7d8f3000-7d8f7000 Deferred libxdamage.so.1
ELF 7d8f7000-7d8fe000 Deferred libasound_module_pcm_pulse.so
ELF 7d905000-7d936000 Deferred winealsa<elf>
\-PE 7d910000-7d936000 \ winealsa
ELF 7d936000-7d95b000 Deferred mmdevapi<elf>
\-PE 7d940000-7d95b000 \ mmdevapi
ELF 7d971000-7d9a8000 Deferred uxtheme<elf>
\-PE 7d980000-7d9a8000 \ uxtheme
ELF 7d9a8000-7d9af000 Deferred libxfixes.so.3
ELF 7d9af000-7d9ba000 Deferred libxcursor.so.1
ELF 7d9bd000-7d9c0000 Deferred libx11-xcb.so.1
ELF 7da3e000-7da66000 Deferred libexpat.so.1
ELF 7da66000-7da9f000 Deferred libfontconfig.so.1
ELF 7da9f000-7daaf000 Deferred libxi.so.6
ELF 7daaf000-7dab3000 Deferred libxcomposite.so.1
ELF 7dab3000-7dabe000 Deferred libxrandr.so.2
ELF 7dabe000-7dac8000 Deferred libxrender.so.1
ELF 7dac8000-7dace000 Deferred libxxf86vm.so.1
ELF 7dace000-7daf2000 Deferred imm32<elf>
\-PE 7dad0000-7daf2000 \ imm32
ELF 7daf2000-7daf9000 Deferred libxdmcp.so.6
ELF 7daf9000-7db1b000 Deferred libxcb.so.1
ELF 7db1b000-7db35000 Deferred libice.so.6
ELF 7db35000-7dc6c000 Deferred libx11.so.6
ELF 7dc6c000-7dc7e000 Deferred libxext.so.6
ELF 7dc7e000-7dd2f000 Deferred winex11<elf>
\-PE 7dc90000-7dd2f000 \ winex11
ELF 7dd2f000-7ddca000 Deferred libfreetype.so.6
ELF 7ddeb000-7de00000 Deferred comm.drv16.so
PE 7ddf0000-7de00000 Deferred comm.drv16
ELF 7de00000-7dec6000 Deferred krnl386.exe16.so
PE 7de10000-7dec6000 Deferred krnl386.exe16
ELF 7dec6000-7deef000 Deferred mpr<elf>
\-PE 7ded0000-7deef000 \ mpr
ELF 7deef000-7df08000 Deferred libz.so.1
ELF 7df0b000-7df14000 Deferred libsm.so.6
ELF 7df14000-7df29000 Deferred system.drv16.so
PE 7df20000-7df29000 Deferred system.drv16
ELF 7df29000-7dfa3000 Deferred wininet<elf>
\-PE 7df30000-7dfa3000 \ wininet
ELF 7dfa3000-7dff0000 Deferred dinput<elf>
\-PE 7dfb0000-7dff0000 \ dinput
ELF 7dff0000-7e01a000 Deferred d3dxof<elf>
\-PE 7e000000-7e01a000 \ d3dxof
ELF 7e01a000-7e05e000 Deferred d3drm<elf>
\-PE 7e020000-7e05e000 \ d3drm
ELF 7e05e000-7e1dd000 Dwarf wined3d<elf>
\-PE 7e070000-7e1dd000 \ wined3d
ELF 7e1dd000-7e259000 Deferred ddraw<elf>
\-PE 7e1e0000-7e259000 \ ddraw
ELF 7e259000-7e378000 Deferred comctl32<elf>
\-PE 7e260000-7e378000 \ comctl32
ELF 7e378000-7e3ee000 Deferred shlwapi<elf>
\-PE 7e390000-7e3ee000 \ shlwapi
ELF 7e3ee000-7e62c000 Deferred shell32<elf>
\-PE 7e400000-7e62c000 \ shell32
ELF 7e62c000-7e658000 Deferred msacm32<elf>
\-PE 7e630000-7e658000 \ msacm32
ELF 7e658000-7e6e2000 Deferred rpcrt4<elf>
\-PE 7e660000-7e6e2000 \ rpcrt4
ELF 7e6e2000-7e844000 Deferred ole32<elf>
\-PE 7e700000-7e844000 \ ole32
ELF 7e844000-7e8b6000 Deferred advapi32<elf>
\-PE 7e850000-7e8b6000 \ advapi32
ELF 7e8b6000-7e997000 Deferred gdi32<elf>
\-PE 7e8c0000-7e997000 \ gdi32
ELF 7e997000-7eb07000 Deferred user32<elf>
\-PE 7e9b0000-7eb07000 \ user32
ELF 7eb07000-7ebbd000 Deferred winmm<elf>
\-PE 7eb10000-7ebbd000 \ winmm
ELF 7ebbd000-7ebfa000 Deferred dplayx<elf>
\-PE 7ebc0000-7ebfa000 \ dplayx
ELF 7ebfa000-7ec07000 Deferred libnss_files.so.2
ELF 7ec07000-7ec13000 Deferred libnss_nis.so.2
ELF 7ec13000-7ec2c000 Deferred libnsl.so.1
ELF 7ef9c000-7efdf000 Deferred libm.so.6
ELF 7efe1000-7efe5000 Deferred libxinerama.so.1
ELF 7efe5000-7f000000 Deferred version<elf>
\-PE 7eff0000-7f000000 \ version
ELF f7481000-f7487000 Deferred libuuid.so.1
ELF f7488000-f748d000 Deferred libdl.so.2
ELF f748d000-f7641000 Deferred libc.so.6
ELF f7642000-f765d000 Deferred libpthread.so.0
ELF f7670000-f7674000 Deferred libxau.so.6
ELF f7674000-f767d000 Deferred libnss_compat.so.2
ELF f767e000-f77c2000 Dwarf libwine.so.1
ELF f77c4000-f77e6000 Deferred ld-linux.so.2
ELF f77e6000-f77e7000 Deferred [vdso].so
Threads:
process tid prio (all id:s are in hex)
0000000e services.exe
0000001f 0
0000001e 0
00000015 0
00000010 0
0000000f 0
00000012 winedevice.exe
0000001c 0
00000018 0
00000014 0
00000013 0
0000001a plugplay.exe
00000020 0
0000001d 0
0000001b 0
0000003c explorer.exe
0000003d 0
00000040 darkedit.exe
00000046 0
00000045 0
00000044 0
00000041 0
00000025 (D) C:\Program Files (x86)\Dark Basic Software\Dark Basic\DB.exe
0000003f 2
00000043 15
00000042 15
0000003b 0
00000021 0
0000000c 0
00000022 0 <==
System information:
Wine build: wine-1.4.1
Platform: i386 (WOW64)
Host system: Linux
Host version: 3.8.0-25-generic
Formerly OBese87.