src/conio win32cio.c 1.99 1.100
Update of /cvsroot/sbbs/src/conio
In directory cvs:/tmp/cvs-serv14768
Modified Files:
win32cio.c
Log Message:
Fix bug reported by DigitalMan in Win32 console mode where if the screen size is changed so that the new X is larger or smaller than the old X *and* the
new Y is different to the old Y in the opposite direction (ie: Old X is smaller and new Y is larger), the screen would not change size, but the internal state would act as though it had.
Since SetConsoleScreenBufferSize() cannot set the screen buffer smaller than the window in either dimension, and SetConsoleWindowInfo() cannot set the window
larger than the screen buffer size in either direction, all resizing calls would
fail, but the internal state would still be updated.
This change prevents the size inversion calls from being used, and does not update the internal state on failure of any call.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net