mIRC Home    About    Download    Register    News    Help

Print Thread
Weird colors #105667 19/12/04 02:22 AM
Joined: Aug 2004
Posts: 147
N
nalAAlan Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Code:
alias hello {
  if ($1 == $null) {
    window -ep @hello
    window -ep @@hello
    tokenize 32 0
  }
  clear -n @hello
  drawdot -nr @@hello 0 5 $calc(300 + $1) $calc(300 - $1)
  hello.copy
  drawdot @hello
  .timerhello 1 0 hello $calc($1 + .5)
}
alias -l hello.copy {
  drawcopy -nt @@hello $rgb(255,255,255) 0 0 $window(@hello).bw $window(@hello).bh @hello 0 0
  clear -n @@hello
}
menu @hello,@@hello {
  mouse:editbox $active $mouse.x $mouse.y $getdot($active,$mouse.x,$mouse.y)
}


There is black in @hello for no reason, it is very weird.
Also, if you move your mouse over to the right the farthest it can go it returns "933 410 4294967295"

Re: Weird colors #105668 19/12/04 10:41 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
it would appear that when using the -n switch values of a window and the window itself are considered to be in the minimized state, this looks like its what is effecting you, your numbers were different from mine, as I think I might use a higher res screen than yours.

Re: Weird colors #105669 20/12/04 03:19 AM
Joined: Aug 2004
Posts: 147
N
nalAAlan Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
What I ment by
Quote:
Also, if you move your mouse over to the right the farthest it can go it returns "933 410 4294967295"

was that $getdot returned 4294967295 which is about 256 times more than $rgb(255,255,255) (16777215).

Re: Weird colors #105670 20/12/04 03:33 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
most likely your in a 32bit color mode, so its returning the dispatched 24bit color as the one that got put on the screen being 32bit, (this is only a guess of course)