giVT_OutputDevHandle = VFS_Open(gsVT_OutputDevice, VFS_OPENFLAG_WRITE);
if(giVT_InputDevHandle == -1) {
Log_Warning("VTerm", "Oh F**k, I can't open the video device '%s'", gsVT_OutputDevice);
+ return ;
}
VT_SetTerminal( 0 );
- VT_SetResolution(1, 640, 480);
+ VT_SetResolution(1, 640, 400);
}
/**
x = Offset % widthInChars;\r
y = Offset / widthInChars;\r
LOG("(x,y) = (%i,%i) = [%i,%i]", x, y, x * giVT_CharWidth, y * giVT_CharHeight * pitch);\r
+ LOG("(w,h) = (%i,%i) = [%i,%i]",\r
+ (int)(Length % widthInChars),\r
+ (int)(Length / widthInChars),\r
+ (int)((Length % widthInChars) * giVT_CharWidth),\r
+ (int)((Length / widthInChars) * giVT_CharHeight * pitch)\r
+ );\r
\r
// Sanity Check\r
if(y > gVesa_Modes[giVesaCurrentMode].height/giVT_CharHeight) {\r
{\r
VT_Font_Render(\r
chars->Ch,\r
- dest, pitch,\r
+ dest + x*giVT_CharWidth, pitch,\r
VT_Colour12to24(chars->BGCol),\r
VT_Colour12to24(chars->FGCol)\r
);\r
\r
- dest += giVT_CharWidth;\r
\r
chars ++;\r
x ++;\r
- if( x >= pitch ) {\r
+ if( x >= widthInChars ) {\r
x = 0;\r
- y ++ ;\r
- dest += pitch*(giVT_CharHeight-1);\r
+ y ++;\r
+ dest += pitch*giVT_CharHeight;\r
}\r
}\r
Length *= sizeof(tVT_Char);\r