Results 1 to 4 of 4

Thread: clanGDI display bug in linux

  1. #1

    Default clanGDI display bug in linux

    Hardware:
    Eee Pc 901, 1.6Ghz Intel Atom processor, Intel Mobile 945GME integrated graphics chip.

    Software:
    Ubuntu Jaunty, Gnome, ClanLib 2.0.0

    Using the compiz window manager, all output to the target window seems to be offset to the lower right, depending on the position of the window on the screen. This means that the distance from the top/left corner of the screen to the top/left corner of the window equals the distance from the top/left corner of the window to the top/left corner of the output. The rest of the window is never drawn to and looks like whatever was behind the window when it was opened/restored.

    To illustrate this, here's a screenshot of the content of the window, running the Pacman example:

    When I disable compiz and use metacity as window manager instead, the output is still offset, but only by the size of the window decorations, independent of the position of the window on the screen.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    This topic title is clanGDI , I assume that the error also happens with clanGL.

    The offset problem is caused by calculation of the X window frame size. I guess that it is failing in gnome for some reason. (it should work on kde)

    (The code is in Display/X11/x11_window.cpp)

    I forgot to test the examples using the gnome window manager. And i've never used compvis/metacity before

    I'll have a look early next week (unless someone else finds the bug first )

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Humm this bug is stranger than I first thought.

    I installed the latest ubuntu 9.04.

    Trying the GUI example, it works with kde, but gnome give quite unusual results:

    (See attached screen grab)

    Only the background rectangle is offset incorrectly

    odd!
    Attached Images Attached Images  

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Fixed in SVN !!!

    CL_X11Window::get_viewport() was incorrect

    What is very strange, is that is worked on kde, because it should not have worked...

    Anyway, it seems to work on gnome and kde

Similar Threads

  1. Unable to display anything.
    By Dermark in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 06-11-2008, 01:08 PM
  2. problem with CL_Surface display a PNG
    By lurker2000wxc in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 03-14-2008, 09:18 AM
  3. cl_displaywindow refuses to display a window
    By dwune in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-01-2007, 04:01 PM
  4. Display targets and input
    By void_kill in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-23-2007, 11:56 PM
  5. Clanlibs display errors
    By megumiaraki in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 12-07-2006, 07:20 AM

Bookmarks

Bookmarks

Posting Permissions

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