Should change

bmap = first_pcx;

to

bmap = sgapanel_bmp;