Find the answer to your Linux question:
Results 1 to 5 of 5
I am writing a C application to take mouse position from a client PC and mapping the mouse position on a server PC. To account for the screen resolution being ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    2

    Grabbing Screen Resolution in C

    I am writing a C application to take mouse position from a client PC and mapping the mouse position on a server PC. To account for the screen resolution being changed, I need to grab the screen resolution in order to map correctly. Can someone tell me how to get the current screen resolution.

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    are both the client and server linux boxes?

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    2
    no, only the server is linux.

  4. #4
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Well for Gnome GTK+ you would use gdk_screen_get_resolution()...for the client....it would depend on the windowing system....

  5. #5
    Just Joined!
    Join Date
    Jan 2011
    Posts
    1
    Hope this snippet could help :-

    search on google with "How to get the screen resolution in Linux C surfing troves"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...