http://bugs.winehq.org/show_bug.cgi?id=33121
Bug #: 33121 Summary: wineconsole: Ignores height/width window size specified in program's external configuration file Product: Wine Version: 1.5.25 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: dasjournal1@gmail.com Classification: Unclassified
Created attachment 43795 --> http://bugs.winehq.org/attachment.cgi?id=43795 Program spawned in wineconsole at default 80 x 25 resolution
I'm using wineconsole to run a console-based Windows program (with --backend=user). Wineconsole always opens the program in an 80 x 25 sized window. Resizing this window via the mouse or right-click configuration area expands the window size, but not the buffer size of the console program. The newly-expanded area is black (see screenshot attachment). These settings are also not saved upon restarting the program. This is the same or very similar bug to 30193 (http://bugs.winehq.org/show_bug.cgi?id=30193).
In Windows, the program detects the maximum width and height of the current display resolution and provides options within the program to modify the height and width. When using wineconsole, the program only detects the 80 x 25 buffer it is spawned in.
Also, in Windows, the program stores the height and width settings in an external configuration file, so that upon restarting the program, the correct window/buffer size is displayed. Wineconsole ignores these settings in favour of an 80 x 25 or lower resolution.
I note in Wine's source code that <source>/server/console.c has hard-coded values of 80 and 25 for the window and screen buffers. This is the default command prompt window size used in Windows. Also, <source>/programs/wineconsole/registry.c sets the default window/buffer values for new wineconsole-based programs.
Modifying <source>/programs/wineconsole/registry.c, recompiling and running 'wineconsole cmd' displays the Windows command prompt in the specified windows size. This modification has no effect on my console-based program, which is always displayed at 80 x 25.
Modifying <source>/server/console.c (and recompiling) also fails to have the desired effect. The program's window is larger, but the program itself is still rendered at 80 x 25. The surrounding area is black, as noted above.
It is as though wineconsole is ignoring or overriding the program's external configuration file.