Ted2 not repainting window contents

About Monkey 2 Forums Monkey 2 Development Ted2 not repainting window contents

This topic contains 3 replies, has 3 voices, and was last updated by  Rumphiz 2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3978

    Rumphiz
    Participant

    Since ted2 v1 I have had an annoying issue that apart from RichardBetson I haven’t heard any one else mention.

    Ted2 will fail to repaint the window contents after the window has lost focus. The window border and title bar are present but the contents of the window are are not drawn. Only mouse input will get the Ted2 window to redraw and then everything’s fine but even then it’s hit and miss.

    The hello world sample also does the same unless I add RequestRender() to the onRender. Adding RequestRender() to Ted2’s mainwindow.monkey2 fixes ted for me, but really I’ve no idea what I’m doing.

    Windows 7 Pro 64-bit, IntelHD Integrated gfx

    #3995

    abakobo
    Participant

    same problem here

    #3996

    Simon Armstrong
    Participant

    After a quick look at SDL2 I am guessing monkey needs to expose the SDL_WINDOWEVENT_EXPOSE event so that apps that don’t use continuous rendering can redraw their window when the OS needs it redrawn.

    #4171

    Rumphiz
    Participant

    Now works perfectly in the latest version.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.