mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline OP
Hoopy frood
OP Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This is regarding fix 50 of 6.32:

Quote:
50.Fixed text in custom @windows being chopped at tab stops.


This fix seems to have the side effect of chopping off the last character of text in any window when using a control code ($chr(1), for instance) and the Fixedsys font (at least).

Reproduce with:

//echo -a $chr(1) Test


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2002
Posts: 5,524
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,524
I can't seem to reproduce this issue here. I used your echo command which displayed a control code character followed by the full word "Test". Which version of Windows are you using? It could be a Windows-specific issue.

Joined: Jul 2006
Posts: 4,222
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,222
I can't reproduce this in mirc 6.32 using window xp


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline OP
Hoopy frood
OP Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Vista. Now that I think about it, this is probably related to the "Control-codes don't display in vista" bug, since the block glyph does not render with full width.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2002
Posts: 5,524
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,524
Thanks I was able to reproduce this issue under Vista. I was also able to reproduce a similar issue under XP. It turns out that the Windows API that I was using to measure the width of text was returning incorrect values for some characters with some fonts. I should hopefully have this fixed for the next version.

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
This is mostly fixed, as this display looks different than in 6.32

/window @test fixedsys
//var %x = 1 | while (%x < 256) { aline @test $chr(%x) $+ test $+ $chr(15) $+ abcd %x | inc %x }

However, the $chr(1) character is still looking like a space character, instead of being a black square the way it used to be.

Joined: Oct 2003
Posts: 3,918
A
argv0 Offline OP
Hoopy frood
OP Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
That wasn't meant to be fixed by this report or fix-- that problem is going to stick with us for a while longer, until mIRC drastically changes the way it handles these codes.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard