Strange Y canvas size
#1

I am not sure if this is a bug or just a problem of my pc but it should be 640 x 480 canvas
The 640 of x are there but the 480 of y not, also it doesn't matter which resolution I use



It end somewhere around 445 not 480, if it helps the dxdiag
Reply
#2

Can you provide your code?
Reply
#3

i see the text is tilted to its right.
Reply
#4

Pretty weird but if we don't see the code we can't say something about your problem.
Reply
#5

Pretty simple code which puts a textdraw in each row
pawn Код:
new
    Text: gText
;

public OnFilterScriptInit() {
    for(new i, tmp[8] = "~r~"; i != 480; ++i) {
        valstr(tmp[3], i, false);

        gText = TextDrawCreate((i * 31) % 620 + 20, i, tmp);
        TextDrawLetterSize(gText, 0.20, 0.70);
        TextDrawAlignment(gText, 2);
        TextDrawSetOutline(gText, 1);
        TextDrawFont(gText, 1);

        TextDrawShowForAll(gText);
    }
}

public OnFilterScriptExit() {
    for(new i; i != 480; ++i) {
        TextDrawDestroy(gText - Text: i);
    }
}
Maybe someone can reproduce this ?, and show me if he gets 480 canvas
Reply
#6

I've done a few tests and it would seem the bounds are from 0 to 440 on the y-axis.



Reply
#7

NVM: guess it was just my imagination
Reply
#8

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Pretty simple code which puts a textdraw in each row
Maybe someone can reproduce this ?, and show me if he gets 480 canvas
Nope.

http://i.imgur.com/ylj2FWd.jpg
Reply
#9

Thanks, good to know that this isn't only on my side, I wanted to know that because of my next release
Reply
#10

So what's the problem ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)