yeah i already thought about that. I tried to set the line width ofSetLineWidth() to values bigger than one in case it was somehow rounding it to less than one but it does not make any difference.
The resolutions are fine in both machines, they are the native ones.
I tried your code and applied it to the x loc and also the width and something funny happens, the error is the same but when the right side of the rect goes
out of the window, then i get the left and top sides drawn. I attach a screenshot
this is the content of my xorg.conf of my desktop file in case anyone sees something there
Section “Files”
FontPath “/usr/share/X11/fonts/misc”
FontPath “/usr/share/X11/fonts/cyrillic”
FontPath “/usr/share/X11/fonts/100dpi/:unscaled”
FontPath “/usr/share/X11/fonts/75dpi/:unscaled”
FontPath “/usr/share/X11/fonts/Type1”
FontPath “/usr/share/X11/fonts/100dpi”
FontPath “/usr/share/X11/fonts/75dpi”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType”
# path to defoma fonts
EndSection
Section “Monitor”
Identifier “SyncMaster”
Option “DPMS”
EndSection
Section “Screen”
Identifier “Default Screen”
Device “ATI Technologies, Inc. Radeon RV100 QY [Radeon 7000/VE]”
Monitor “SyncMaster”
DefaultDepth 24
SubSection “Display”
Depth 1
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
SubSection “Display”
Depth 4
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
SubSection “Display”
Depth 8
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
SubSection “Display”
Depth 15
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
SubSection “Display”
Depth 16
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
SubSection “Display”
Depth 24
Modes “1280x1024” “1152x864” “1024x768” “832x624” “800x600” “720x400” “640x480”
EndSubSection
EndSection
Section “Module”
Load “i2c”
Load “bitmap”
Load “ddc”
Load “dri”
Load “extmod”
Load “freetype”
Load “glx”
Load “int10”
Load “type1”
Load “vbe”
EndSection
Section “DRI”
Mode 0666
EndSection
Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105”
Option “XkbLayout” “es”
Option “XkbOptions” “lv3:ralt_switch”
EndSection
Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ExplorerPS/2”
Option “ZAxisMapping” “4 5”
Option “Emulate3Buttons” “true”
EndSection
Section “Extensions”
Option “Composite” “Disable”
EndSection
Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
EndSection
Section “Device”
Identifier “ATI Technologies, Inc. Radeon RV100 QY [Radeon 7000/VE]”
Driver “radeon”
BusID “PCI:1:0:0”
EndSection
Section “ServerFlags”
Option “DontZap” “False”
EndSection