- replace NULL character by space to avoid cutting text at this point when
copying to clipboard
This commit is contained in:
parent
bff8ea8831
commit
b0c26ef814
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: gui.cc,v 1.111 2009-03-25 18:33:38 vruppert Exp $
|
||||
// $Id: gui.cc,v 1.112 2009-04-20 18:11:13 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -373,6 +373,8 @@ Bit32s bx_gui_c::make_text_snapshot(char **snapshot, Bit32u *length)
|
||||
for (unsigned i=0; i<txHeight; i++) {
|
||||
line_addr = i * txWidth * 2;
|
||||
for (unsigned j=0; j<(txWidth*2); j+=2) {
|
||||
if (!raw_snap[line_addr+j])
|
||||
raw_snap[line_addr+j] = 0x20;
|
||||
clean_snap[txt_addr++] = raw_snap[line_addr+j];
|
||||
}
|
||||
while ((txt_addr > 0) && (clean_snap[txt_addr-1] == ' ')) txt_addr--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user