Author Topic: QB64 - Rendering issue  (Read 4139 times)

0 Members and 1 Guest are viewing this topic.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
QB64 - Rendering issue
« on: June 07, 2018, 01:27:26 pm »
Hi. I found this bug. Run this source and move created window. Its the same, which do my laptop, maybe because use lower resolution. I can not this send to BUGS thread, because New Topic button is not available, so, as is not possible send attachments in some threads.

Code: QB64: [Select]
  1. INPUT "Move this window on the screen!"; M
  2.  

Attachment show my output. For case, that it is right on your side!
« Last Edit: June 07, 2018, 03:04:22 pm by odin »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: QB64 - Rendering issue
« Reply #1 on: June 07, 2018, 01:43:11 pm »
Hi Petr,

That's all the code? What version are you using?
« Last Edit: June 07, 2018, 03:04:33 pm by odin »

FellippeHeitor

  • Guest
Re: QB64 - Rendering issue
« Reply #2 on: June 07, 2018, 01:49:29 pm »
Hi, not a bug.

Is that Windows 7? I see your enhanced Windows rendering engine is disabled (do you have hardware acceleration?). Try reenabling it and that will be gone.

What happens is that, with less memory assigned to video memory, QB64 windows (which are OpenGL surfaces) won't be updated unless _DISPLAY is called again. In your case, the IDE is hung waiting for your program to end, and because of that it is not updating the OpenGL surface buffer.

Either turn on Windows's advanced rendering engine again (usually by setting the desktop theme to Windows 7's default with the glass effects) or, instead of hitting F5 to run your program, hit Ctrl+F5, which will run it detached from the IDE.

PS: The "Bugs" thread is closed because the Admin will only move there topics that are really bugs, which is why this type of inquiry should really be posted here, in Discussion. (notice the board's description: "Topics in QB64-related deemed bug-related are moved here by admin.")
« Last Edit: June 07, 2018, 03:04:44 pm by odin »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: QB64 - Rendering issue
« Reply #3 on: June 07, 2018, 02:06:36 pm »
Thank you Fellippe. Indeed, the desktop window manager has been disabled. So again, there was a mistake with me. Oh no. After the desktop manager is turned on, the problem disappeared. The relationship escaped me.
« Last Edit: June 07, 2018, 03:04:53 pm by odin »

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: QB64 - Rendering issue
« Reply #4 on: June 07, 2018, 03:48:35 pm »
Cool... I have not seen the '_DESKTOPWIDTH' before. That is one wide 'command box'. By the way, no glitch, but cool command.

J
Logic is the beginning of wisdom.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: QB64 - Rendering issue
« Reply #5 on: June 07, 2018, 04:08:33 pm »
Hi Johnno56, function _DESKTOPWIDTH return width your desktop, _DESKTOPHEIGHT return height your desktop, so you can easy do NEWIMAGE with the same resolution as desktop.


Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: QB64 - Rendering issue
« Reply #6 on: June 07, 2018, 11:18:02 pm »
Cool... Thanks Petr.

J
Logic is the beginning of wisdom.