sealfin
2003.10.10, 12:53 PM
I'm just trying to plot one pixel directly to a surface (which has already been locked, et al) with...
theSurface->pixels[ (( 640 * ( y - 1 )) + x ) ] = SDL_MapRGB( theSurface->format, 255, 0, 0 );
...unfortunately, I just get reported the error "invalid use of void expression" - I've tried to typecast the plot, but this merely changes the error reported - any suggestions?
theSurface->pixels[ (( 640 * ( y - 1 )) + x ) ] = SDL_MapRGB( theSurface->format, 255, 0, 0 );
...unfortunately, I just get reported the error "invalid use of void expression" - I've tried to typecast the plot, but this merely changes the error reported - any suggestions?