Jump to content

Intel HD Chip Resolution Bug


MaxAigner
 Share

Recommended Posts

Hello People,

 

I have a question about one Intel Card Related Issue.

 

Summary:

When I Start a Leadwerks Program, the Fullscreen is bigger than the hardware-screen itself, so about 30% of the Leadwerks Content is outside of the hardware screen (see attached file)

 

Download this example Code - change the resolutionx and resolutiony in the main.lua

( note the ball is not in center for big resolutions - you can see the too big fullscreen when you have a second screen on the right)

Code:


import "LEAddon.lua"

Steamworks:Initialize()

--Set the application title
title="AMES Präsentation"

-- notfalls über GetProperty einfach die commandline params "resx rexy" holen -> mit Purebasic dann einfach einen Launcher machen.
resolution = Vec2(0)
resolution = System:GetGraphicsMode(System:CountGraphicsModes()-1)
countmodes = System:CountGraphicsModes()
erg = Vec2(0)

resolution.x = System:GetProperty("resx" , 1024) -- the resolution of the notebook is 1920
resolution.y = System:GetProperty("resy" , 768) -- resy is here: 1080

--Create a window
local windowstyle = window.Titlebar
windowstyle=windowstyle+window.FullScreen
window=Window:Create(title,0,0,resolution.x , resolution.y,windowstyle)
window:HideMouse()

--Create the graphics context
context=Context:Create(window,0)
if context==nil then return end

 

How can I fix this Issue of a too big screen...?

post-15470-0-73285900-1443801827_thumb.jpg

Link to comment
Share on other sites

So your monitor is 1920x1080 native resolution and you're creating a 1024x768 fullscreen window? On my card that works, but it's ugly. You want to create a window with the same aspect ratio, like 1920x1080, 1600x900, 1280x720, etc.

 

http://www.leadwerks.com/werkspace/page/api-reference/_/system/systemcountgraphicsmodes-r857

 

http://www.leadwerks.com/werkspace/page/api-reference/_/system/systemgetgraphicsmode-r858

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

first I looped through the GetGraphicsMode() Modes with a and just picked the one that has the same aspect ratio

it was something like this:

resolution = Vec2(0)
countmodes = System:CountGraphicsModes() 
for i = 0 , countmodes -1, 1 do
  vec = System:GetGraphicsMode(i)
  if math.floor(1024/768) == math.floor(vec.x/vec.y) then
     resolution.x = vec.x
     resolution.y = vec.y
  end
end

(it had the same Issue of too big Fullscreens)

 

NOW I am using an External Launcher But still I have that Issue but ONLY on three of my INTEL chips - not on two tested Nvidia devices.... sad.pngunsure.png

 

DOWNLOAD Example (works with ALL Leadwerks fullscreen projects)

Link to comment
Share on other sites

I have tested it on two computers with a HD 4000 from Intel:

  1. Intelchip PLUS Monitor
  2. on my surface there is an Intel Chip and no monitor !

both have the oversized Leadwerks screen.

 

on GTX 980 there it Works completely fine (no issue!) ! with the same code (the same exe file)

 

the error comes only on high or HD resolutions like 2160x1440 or 1920x1080

Do you have a notebook to test it with a high resolution?

Link to comment
Share on other sites

I do not have a laptop with an Intel chip but I tested with a discrete Nvidia GPU and with Intel HD graphics. I ran the "resolutiontest" application with both hardware setups, and got the same results. I did not change any code.

post-1-0-84401900-1444349071_thumb.jpg

post-1-0-38768800-1444349078_thumb.jpg

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Hm that is awkward - anyway I have an Idea -

Probably it is because of the touchpanel that both my "infected" computers have!

probably you can try out a surface pro 3 -> maybe there are some issues because of the higher scaled touchpanel or something

what do you think?

 

yours

Max

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...