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.
http://bugs.winehq.org/show_bug.cgi?id=33121
--- Comment #1 from Hugh dasjournal1@gmail.com 2013-03-04 05:53:38 CST --- Created attachment 43796 --> http://bugs.winehq.org/attachment.cgi?id=43796 Program expanded in wineconsole. Black area should be filled.
The black area represents the expanded window size, but the screen buffer has not expanded to fill it. Compare this to the program running natively in Windows.
http://bugs.winehq.org/show_bug.cgi?id=33121
--- Comment #2 from Hugh dasjournal1@gmail.com 2013-03-04 05:55:55 CST --- Created attachment 43797 --> http://bugs.winehq.org/attachment.cgi?id=43797 Program running natively in Windows.
This is the program running natively in Windows. Note the window size is larger than the default 80 x 25, and that the program fills the window. This is the expected behaviour.
http://bugs.winehq.org/show_bug.cgi?id=33121
--- Comment #3 from Hugh dasjournal1@gmail.com 2013-03-04 05:57:25 CST --- Created attachment 43798 --> http://bugs.winehq.org/attachment.cgi?id=43798 External configuration file.
This is the external configuration file with the height and width of the window size. The spawned window should use these values.
https://bugs.winehq.org/show_bug.cgi?id=33121
--- Comment #4 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over 700 days. Is this still an issue in current (1.7.36 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=33121
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #5 from Béla Gyebrószki gyebro69@gmail.com --- This bug as well as bug #30193 are probably duplicates of bug #3200.
https://bugs.winehq.org/show_bug.cgi?id=33121
Hugh McMaster hugh.mcmaster@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |dd6477966b2628995e0a9384b04 | |fee9658ef011b Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Hugh McMaster hugh.mcmaster@outlook.com --- Resolved by http://source.winehq.org/git/wine.git/commitdiff/dd6477966b2628995e0a9384b04...
https://bugs.winehq.org/show_bug.cgi?id=33121
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.1.