Jump to content


Photo

Auto-Detect Monitor Resolution


  • Please log in to reply
2 replies to this topic

#1 Lemoncreme

Lemoncreme

    GMC Member

  • GMC Member
  • 161 posts
  • Version:GM8

Posted 18 May 2012 - 02:39 AM

I'd like to know if there is a way to auto-detect the resolution of the monitor a game is being played on.
This would be incredibly useful because when games are played on monitors with higher or lower resolution than the game is made for, the mouse position is miscalculated.

If auto-detecting isn't possible, is there any way to prevent this error?

Please help!
  • 0

#2 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 18 May 2012 - 02:57 AM

display_get_width() Returns the width of the display in pixels.
display_get_height() Returns the height of the display in pixels.
display_get_colordepth() Returns the color depth in bits.
display_get_frequency() Returns the refresh frequency of the display.

the mouse position is miscalculated.

I'm not familiar with this. Maybe someone else can help you out with that, but I've never found the mouse coordinates incorrect.
  • 0

#3 Lemoncreme

Lemoncreme

    GMC Member

  • GMC Member
  • 161 posts
  • Version:GM8

Posted 18 May 2012 - 03:30 AM

display_get_width() Returns the width of the display in pixels.
display_get_height() Returns the height of the display in pixels.
display_get_colordepth() Returns the color depth in bits.
display_get_frequency() Returns the refresh frequency of the display.

the mouse position is miscalculated.

I'm not familiar with this. Maybe someone else can help you out with that, but I've never found the mouse coordinates incorrect.


Thanks!!!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users