Hi Paul Banach,
Firstly i want to thank you for your quick answer.
Have you made other modifications in the Build Environment? If yes, start from scratch using the original files and step by step add the modifications and then test the application.
Yes, i have modifications in my Build Environment and while i was looking through the whole process of going Borderless and Windowed i noticed that when i go Borderless the Screen Resize Function, that my coworker gave me, signals the button press again, but only if i switch to borderless not when i switch to windowed.
So i removed the signal and now it works.
I also checked if that made any other errors, but i haven't found any yet, so it seems to me that the signal was useless.
If you want you can check the function, because it would be nice to know if you might have an answer to why that happened.
And i asked my coworker he said this function was given to him on his thread in the forums, with the goal to make a window with a dynamic size.
/* Following function has the job to adjust the size of the viewport and the
of the root object to the values provided in the variables aWidth/aHeight. */
void EwResizeScreen(int aWidth, int aHeight, void* aFrameBuffer)
{
XPoint size = { aWidth, aHeight };
XRect rect = { 0, 0, aWidth, aHeight };
/* Each time the window is resized -> discard the old viewport ... */
if (Viewport) EwDoneViewport(Viewport);
Viewport = 0;
/* ... and create a new viewport as bridge between the Windows DIB and the
Graphics Engine bitmap represented by aFrameBuffer */
if ((Viewport = EwInitViewport(size, rect, 0, 255, aFrameBuffer,
0, 0, EwViewportProc)) == 0)
EwPanic();
/* Update all relevant variables */
DisplayInfo.FrameBuffer = aFrameBuffer;
DisplayInfo.DisplayWidth = aWidth;
DisplayInfo.DisplayHeight = aHeight;
DisplayInfo.ViewportX = 0;
DisplayInfo.ViewportY = 0;
DisplayInfo.ViewportWidth = aWidth;
DisplayInfo.ViewportHeight = aHeight;
DisplayInfo.Context = 0;
/* update the size of the root object */
CoreRectView__OnSetBounds(RootObject, rect);
CoreGroup__InvalidateArea(RootObject, rect);
/* Force immediate screen update */
EwProcessSignals(); // THIS SIGNALS THE BUTTON PRESS AGAIN
EwUpdate(Viewport, RootObject);
}