git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
320aba7
)
Fixed mode switch behavior
author
John Hodge
<
[email protected]
>
Mon, 2 Aug 2010 01:22:13 +0000
(09:22 +0800)
committer
John Hodge
<
[email protected]
>
Mon, 2 Aug 2010 01:22:13 +0000
(09:22 +0800)
Kernel/drv/vterm.c
patch
|
blob
|
history
diff --git
a/Kernel/drv/vterm.c
b/Kernel/drv/vterm.c
index
b2db41f
..
805ce7b
100644
(file)
--- a/
Kernel/drv/vterm.c
+++ b/
Kernel/drv/vterm.c
@@
-472,10
+472,18
@@
int VT_Terminal_IOCtl(tVFS_Node *Node, int Id, void *Data)
// Update mode if needed
if( term->Mode != *iData
// Update mode if needed
if( term->Mode != *iData
- || term->
Width != term->
NewWidth
- || term->
Height != term->
NewHeight)
+ || term->NewWidth
+ || term->NewHeight)
{
{
+ if( *iData == TERM_MODE_TEXT ) {
+ term->NewHeight *= giVT_CharHeight;
+ term->NewWidth *= giVT_CharWidth;
+ }
+ if(term->NewHeight == 0) term->NewHeight = term->Height;
+ if(term->NewWidth == 0) term->NewWidth = term->Width;
VT_int_ChangeMode(term, *iData, term->NewWidth, term->NewHeight);
VT_int_ChangeMode(term, *iData, term->NewWidth, term->NewHeight);
+ term->NewWidth = 0;
+ term->NewHeight = 0;
}
// Update the screen dimensions
}
// Update the screen dimensions
UCC
git Repository :: git.ucc.asn.au