Hi,
I'm trying to learn form the tutorial in AppGameKit forum on detecting and setting screen sizes for different devices. I'm currently just trying to detect mine and set it in the program. In the following code I am not running the tutorial code as it is remed out. Part of it didn't work on my system anyway. Instead of 2 colors I needed 3 in the DrawLine() command for it to work.
All images won't load with link so they are at the bottom
Anyway with this code:
ScrLeft = GetScreenBoundsLeft()
ScrTop = GetScreenBoundsTop()
ScrRight = GetScreenBoundsRight()
ScrBtm = GetScreenBoundsBottom()
do
PrintC("ScrLeft ") : Print(ScrLeft)
PrintC("ScrTop ") : Print(ScrTop)
PrintC("ScrRight ") : Print(ScrRight)
PrintC("ScrBtm ") : Print(ScrBtm)
//x = GetScreenBoundsLeft() + 1
//DrawLine(x, 0, x, 100, 0x00FF00, 0x00FF00)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 0
//DrawLine(x, 0, x, 100, 0x0000FF, 0x0000FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 50
//DrawLine(x, 0, x, 100, 0xFF00FF, 0xFF00FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 100
//DrawLine(x, 0, x, 100, 0x0000FF, 0x0000FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = GetScreenBoundsRight() - 1
//DrawLine(x, 0, x, 100, 0x00FF00, 0x00FF00)
//DrawLine(x, 0, x, 100, 0, 255, 0)
Sync()
loop
I get this set of numbers for my boarders:
ScrLeft -17
ScrTop 0
ScrRight 117
ScrBtm 100
With this code I get these boarders:
SetDisplayAspect(1)
]ScrLeft = GetScreenBoundsLeft()
ScrTop = GetScreenBoundsTop()
ScrRight = GetScreenBoundsRight()
ScrBtm = GetScreenBoundsBottom()
do
PrintC("ScrLeft ") : Print(ScrLeft)
PrintC("ScrTop ") : Print(ScrTop)
PrintC("ScrRight ") : Print(ScrRight)
PrintC("ScrBtm ") : Print(ScrBtm)
//x = GetScreenBoundsLeft() + 1
//DrawLine(x, 0, x, 100, 0x00FF00, 0x00FF00)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 0
//DrawLine(x, 0, x, 100, 0x0000FF, 0x0000FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 50
//DrawLine(x, 0, x, 100, 0xFF00FF, 0xFF00FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = 100
//DrawLine(x, 0, x, 100, 0x0000FF, 0x0000FF)
//DrawLine(x, 0, x, 100, 0, 255, 0)
//x = GetScreenBoundsRight() - 1
//DrawLine(x, 0, x, 100, 0x00FF00, 0x00FF00)
//DrawLine(x, 0, x, 100, 0, 255, 0)
Sync()
loop
I get these boarders:
ScrLeft -39
ScrTop 0
ScrRight 139
ScrBtm 100
This is what i found my Nvidia Geforce GTX 1080 8GB set to. The 144mhz is just the max it can go. It is currently set to 60mhz. Installation set it to this by default.
Image at bottom
I'm not sure what to do. Not sure about code or setting graphics card to "Full Screen" or leave it at "Ratio" I just want to get my proper full screen boarders Currenly set at 1080p, 1920x1080
Any help on how to deal with graphics settings or code would be greatly appreciated
Gigabyte Board/ AMD 3.3 Ghtz Quad core/8GB Ram/Nvidia Geforce 1080 GTX 8GB/1TB Western Dig. SSD/Windows 10 Home/Dark Basic Pro 9Ex/AGK2/AGKStudio
No one cares how much you know until they know how much you care.