MaxAigner Posted October 2, 2015 Share Posted October 2, 2015 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...? Quote Link to comment Share on other sites More sharing options...
Josh Posted October 2, 2015 Share Posted October 2, 2015 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 Quote 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 More sharing options...
MaxAigner Posted October 2, 2015 Author Share Posted October 2, 2015 nono I am creating a 1920x1080 fullscreen window on a 1920x1080 native resolution screen Quote Link to comment Share on other sites More sharing options...
MaxAigner Posted October 2, 2015 Author Share Posted October 2, 2015 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.... DOWNLOAD Example (works with ALL Leadwerks fullscreen projects) Quote Link to comment Share on other sites More sharing options...
Josh Posted October 2, 2015 Share Posted October 2, 2015 You're using two monitors and it appears in between them? Quote 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 More sharing options...
MaxAigner Posted October 2, 2015 Author Share Posted October 2, 2015 I have tested it on two computers with a HD 4000 from Intel: Intelchip PLUS Monitor 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? Quote Link to comment Share on other sites More sharing options...
Josh Posted October 9, 2015 Share Posted October 9, 2015 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. Quote 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 More sharing options...
MaxAigner Posted October 9, 2015 Author Share Posted October 9, 2015 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.