Faster windowing due to fancy void* casting