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 ...
- 08-20-2008 #1Just 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.
- 08-20-2008 #2
are both the client and server linux boxes?
- 08-20-2008 #3Just Joined!
- Join Date
- Aug 2008
- Posts
- 2
no, only the server is linux.
- 08-20-2008 #4
Well for Gnome GTK+ you would use gdk_screen_get_resolution()...for the client....it would depend on the windowing system....
- 01-17-2011 #5Just 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"


