QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Richard on September 09, 2019, 04:22:28 am

Title: 3200 x 1800 display problem
Post by: Richard on September 09, 2019, 04:22:28 am
Hi everyone - my first post.

Using HP zBook 15 G2 x64 laptop with 3200 x 1800 display and Windows 10 1903 with latest updates.

The program does not correctly access the full resolution of the display with QB64dev-2019-08-28.
Title: Re: 3200 x 1800 display problem
Post by: bplus on September 09, 2019, 08:45:54 am
Hi Richard,

oops your color will work, big screen!

This code does run on my laptop:
Code: QB64: [Select]
  1. version$ = "zGraphics_QB64forum.bas" 'alpha Red Green Blue
  2.  
  3. z = &HFFFFFFFF ' color bright white
  4.  
  5. Xlimit% = 3200 - 1: Ylimit% = 1800 - 1 '3200x1800 laptop display
  6. xx& = Xlimit%: yy& = Ylimit%
  7. SCREEN _NEWIMAGE(xx& + 1, yy& + 1, 32): _FULLSCREEN 'all of 3200x1800 display
  8.  
  9. LINE (1, 1)-(xx& - 1, yy& - 1), z, B ' can not do box with x=0 or xx&, y=0 or yy&
  10. LINE (5, 5)-(xx& - 5, yy& - 5), z, B ' next resolved inner box
  11. COLOR z: LOCATE 2, 375: PRINT version$
  12. PSET (99, 99), z: PSET (100, 100), z: PSET (101, 101), z
  13. 'should have 3 resolved points
  14.  
  15. 'ending: DO: LOOP UNTIL INKEY$ <> ""
  16.  

I suppose _FULLSCREEN fixes it for my screen not nearly as big. Here what my version looks like
Title: Re: 3200 x 1800 display problem
Post by: johnno56 on September 09, 2019, 07:10:41 pm
The whole screen was displayed on my machine... But, I had to breakout the magnifying glass, to read the text... lol