only some changes, added PSDLWindow only as Pointer