Changeset 4502 for trunk/src/kernel32/conbuffer.cpp
- Timestamp:
- Oct 20, 2000, 1:46:48 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/conbuffer.cpp
r4467 r4502 1 /* $Id: conbuffer.cpp,v 1.1 2 2000-10-09 17:47:21sandervl Exp $ */1 /* $Id: conbuffer.cpp,v 1.13 2000-10-20 11:46:44 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 #define INCL_VIO 63 63 #define INCL_AVIO 64 #include <os2wrap.h> 64 #include <os2wrap.h> //Odin32 OS/2 api wrappers 65 65 66 66 #include <win32api.h> … … 73 73 #include "HMDevice.h" 74 74 #include "ConBuffer.H" 75 #include "console.h" 75 76 #include "Console2.h" 76 77 #include <heapstring.h> 77 78 78 #define DBG_LOCALLOG 79 #define DBG_LOCALLOG DBG_conbuffer 79 80 #include "dbglocal.h" 80 81 … … 256 257 /* check if we're called with non-existing line buffer */ 257 258 if (pConsoleBuffer->ppszLine == NULL) { 258 259 259 SetLastError(ERROR_OUTOFMEMORY_W); 260 return FALSE; 260 261 } 261 262 for (ulCounter = 0; … … 2266 2267 pConsoleBuffer->coordBufferSize.X = coordSize.X; 2267 2268 pConsoleBuffer->coordBufferSize.Y = coordSize.Y; 2268 pConsoleBuffer->coordCursorPosition.X = 0; 2269 pConsoleBuffer->coordCursorPosition.Y = 0; 2269 if (flVioConsole) { 2270 USHORT Row = 0; 2271 USHORT Column = 0; 2272 APIRET rc; 2273 2274 rc = VioGetCurPos(&Row, &Column, 0); 2275 dprintf(("Current cursor position (%d,%d)", Column, Row)); 2276 pConsoleBuffer->coordCursorPosition.Y = Row; 2277 pConsoleBuffer->coordCursorPosition.X = Column; 2278 } 2279 else { 2280 pConsoleBuffer->coordCursorPosition.X = 0; 2281 pConsoleBuffer->coordCursorPosition.Y = 0; 2282 } 2270 2283 2271 2284 /* @@@PH to be changed ! */
Note:
See TracChangeset
for help on using the changeset viewer.