Re: Windows SetConsoleScreenBufferSize() returning an odd error code

2013-10-10 Thread webwraith
On Saturday, 5 October 2013 at 21:33:32 UTC, Andrej Mitrovic wrote: On 10/5/13, webwraith wrote: I don't know about you, but it's beginning to look to me like SetConsoleScreenBufferSize() takes pixels as its unit of measurement, and not columns and rows, as is stated in its docume

Re: Windows SetConsoleScreenBufferSize() returning an odd error code

2013-10-05 Thread webwraith
I don't know about you, but it's beginning to look to me like SetConsoleScreenBufferSize() takes pixels as its unit of measurement, and not columns and rows, as is stated in its documentation. I don't suppose you could confirm this?

Re: Windows SetConsoleScreenBufferSize() returning an odd error code

2013-10-05 Thread webwraith
...And that will teach me to look further. SM_CXMIN and SM_CYMIN are measured in pixels. I'll need to find out how big my font is, as well, but I'm pretty sure that 60x30 at the default system font should be bigger.

Re: Windows SetConsoleScreenBufferSize() returning an odd error code

2013-10-05 Thread webwraith
On Saturday, 5 October 2013 at 11:24:49 UTC, Andrej Mitrovic wrote: On 10/5/13, webwraith wrote: Could someone give this code the quick once over and tell me where I'm going wrong, or simply how to get this to work? In the docs: http://msdn.microsoft.com/en-us/library/windows/de

Windows SetConsoleScreenBufferSize() returning an odd error code

2013-10-05 Thread webwraith
I'm not sure if it's my code, although I feel fairly confident it isn't, but SetConsoleScreenBufferSize() is failing with error 87, which a quick browse of MSDN tells me is ERROR_INVALID_PARAMETER. Could someone give this code the quick once over and tell me where I'm going wrong, or simply how