thank you !Yes that was the issue .
I am struggling with a function that reduces the size of the screen by a factor x.
The problem is that I dont succeed to keep the location of the painted point s on the screen canvas. the redcution is done by deleting the remaining points
I coded this::
void Screen::shrink(int reduc)
{
if((reduc<height)&&(reduc<width))
{ height=height/reduc;
width=width/reduc;
for( int i=height;i<0;i--)
for( int j=width;j<0;j--)
delete[](pixels+(i*width)+i);
}//end if
}
if the screen is:
4455*888
4455*888
5555*888
*******
if we do shrink(2), the screen should be:
4455
4455
In my function the size it OK but the location of the points is not kept. because I don't know how to 'jump' one line up to start deleting again.
I continue to work on it but Please if someone has a suggestion please send it to me.
B.