added mutex to window, changed operator SDL_Rect* to operator SDL_Rect