passing globalshiftval as parameter to draw.c
globalshiftval is no longer a global