You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Isso foi diferença causada pelo editor do github, já editei pra colocar espaços nos asteriscos.
O problema é o compilador usar como função COLOR ( n ) é o mesmo que Color( n ) para o compilador.
Por isso usar o #define acaba atrapalhando.
On hbwin.ch
#define WIN_RGB( nR, nG, nB ) ( nR + ( nG * 256 ) + ( nB * 256 * 256 ) )
This can cause a bug on use
COLOR WIN_RGB(1,1,1)
is translated to
COLOR ( 1 + ( 1 * 256) + ( 1 * 256 * 256 ) )
but compilation uses this as a function, no matter about spaces.
may be better to create a real function.
FUNCTION WIN_RGB( nR, nG, nB )
RETURN ( nR + ( nG * 256 ) + ( nB * 256 * 256 ) )
The text was updated successfully, but these errors were encountered: