No, the resolution does not change based on the contents of
a - it changes because of the RGB() function. By setting
a to the value of 4294967295 (2^32-1), it behaves the same as setting it to 5.
Personally this appears obvious - the RGB() command uses the bit depth of the screen, which is directly related to the screen resolution.
Compare these, which have different resolutions, despite maintaining the same value in
a.
a as DWord
b as DWord
c as Dword
a=4294967295
b=5
Print "a=";a
Print "b=";b
c=a/b
Print "a/b=";c
Wait Key
End
a as DWord
b as DWord
c as Dword
a=RGB(255,255,255)
b=5
Print "a=";a
Print "b=";b
c=a/b
Print "a/b=";c
Wait Key
End
The optimist's right, The pessimist's right.