Crystal Space
Welcome, Guest. Please login or register.
October 02, 2014, 10:22:53 am

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8579 Members
Latest Member: Pawdykn
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Project Development
| |-+  Plugins
| | |-+  XRANDR plugin [done, requires testing]
« previous next »
Pages: [1] Print
Author Topic: XRANDR plugin [done, requires testing]  (Read 2655 times)
Leon
Newbie
*
Posts: 4


View Profile
« on: June 26, 2012, 06:14:38 pm »

I did some hack and slash coding and added XRANDR support to the XF86VM plugin (./plugins/video/canvas/xextf86vm/xextf86vm) as a quick way to get it working and now I'm working on writing this as a separate plugin. Unfortunately, this can't be done without editing a few CS files.
« Last Edit: July 07, 2012, 05:50:20 pm by Leon » Logged
Leon
Newbie
*
Posts: 4


View Profile
« Reply #1 on: June 27, 2012, 09:19:02 pm »

here's the code for using XRANDR from inside CS's XF86VM plugin, please note that it is a work in progress, so it's full of comments and print messages :
modified ./pluginsplugins/video/canvas/xextf86vm/xextf86vm.cpp: http://pastebin.com/BdYuWuWA
modified ./pluginsplugins/video/canvas/xextf86vm/xextf86vm.h:     http://pastebin.com/mkRzGTE0
modified ./configure.ac                                                                             http://pastebin.com/R9WgdiDj

I tried moving the code to it's own plugin, but to make a long story short, I couldn't really tell if it was working or not. Maybe someone else can do it.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #2 on: June 28, 2012, 03:53:17 pm »

Hi,
great idea, and nice you're trying to tackle it Smiley

I have two suggestions:
- If you haven't done so already, check out the CS development branch from Subversion and work for that.
  This will allow you to easily make patches(difference files), which are much better discussed than complete files.
- You can discuss your work on the developers mailing list or the IRC channel (see http://crystalspace3d.org/main/Community – note the mailing list is probably better, as IRC activity varies by time of day).
  Discussing there is the best way to get things going forward.

Looking forward to see you there Smiley
-f.r.
Logged
Leon
Newbie
*
Posts: 4


View Profile
« Reply #3 on: June 29, 2012, 08:50:31 pm »

Update: I did manage to get it to work as a separate plugin. It was just a bad string value for  XQueryExtension. It still needs a bit more spit and polish, but now that it is working I have a better chance of getting there.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.135 seconds with 16 queries.