I’m working on a bootloader, an I get this syntax error, and have no idea what it means, If someone could help me out, it would be much appreciated.
bool DrawBitmap(BYTE Bitmap, int x, int y, int w, int h)
{
for(int i=0;i<=w;i++)
for(int i2=0;i2<=h; i2++)
{
setpixel(i+x,i2+h, Bitmap[(((w*i2)-1)+i)]);
}
}
Note, the error occurs in [(((w*i2)-1)+i)].
Bitmap is passed as a BYTE. Probably it should be a BYTE-pointer.
Try defining your function like this: