Re: need help with freetype + xlib.
First Last wrote: Hi, I try to use freetype with xlib, I , I need to pass a char type array (RGBA/pixel) to a xlib function. from freetype I got : face-glyph-bitmap.pixel_mode = 2 so if I understood corectly in face-glyph-bitmap.buffer datas are stored in gray level. face-glyph-bitmap.rows=16 face-glyph-bitmap.width=8 face-glyph-bitmap.pitch=8 so I guess, length of face-glyph-bitmap.buffer = 1(gray lvl)*16(width)*8(rows)=128 unsigned chars, right ? Right answer, wrong reasoning; width should be replaced by pitch. The two values may differ if there is padding between lines. then I create an array of char for xlib from face-glyph-bitmap.buffer for(i=0;i128;i++){ Xdata[4*i] = face-glyph-bitmap.buffer[i]; Xdata[4*i+1] = face-glyph-bitmap.buffer[i]; Xdata[4*i+2] = face-glyph-bitmap.buffer[i]; Xdata[4*i+3] = 255; } and I try to create a XImage : ximage = XCreateImage(display, DefaultVisual(display,0), 24, ZPixmap, 0, Xdata[0], 8/*rows*/, 16/*width*/, 32/*RGBA*/, 8/*pitch??*/); The last argument (bytes_per_line) should be 32 (8 pixels wide at 4 bytes per pixel). -- Glynn Clements gl...@gclements.plus.com ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: [ft] need help with freetype + xlib.
thank you Werner, it's working fine now. So this issue was (again) from my english skill, I wasn't sure of scanline and pitch means... -Nicoo ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: need help with freetype + xlib.
Hi Glynn, so I guess, length of face-glyph-bitmap.buffer = 1(gray lvl)*16(width)*8(rows)=128 unsigned chars, right ? Right answer, wrong reasoning; width should be replaced by pitch. The two values may differ if there is padding between lines. thx for this. -Nicoo ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
[PATCH compositeproto] Document update field in Unredirect requests
Signed-off-by: Peter Harris phar...@opentext.com --- Looks like the spec was missed when this field was added to the headers back in 2003 (the CVS commit now known as 11105d870631fe5f858291fbf167f1da400d7fa9 ). compositeproto.txt |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compositeproto.txt b/compositeproto.txt index c1d099c..4614c7b 100644 --- a/compositeproto.txt +++ b/compositeproto.txt @@ -214,22 +214,26 @@ operations other than QueryVersion. UnredirectWindow: window: Window + update UPDATETYPE errors: Window, Value Redirection of the specified window will be terminated. If the specified window was not selected for redirection by the - current client, a 'Value' error results. + current client, or the UPDATETYPE doesn't match, a 'Value' error + results. UnredirectWindows: window: Window + update UPDATETYPE errors: Window, Value Redirection of all children of window will be terminated. If the specified window was not selected for sub-redirection by the - current client, a 'Value' error results. + current client, or the UPDATETYPE doesn't match, a 'Value' error + results. 9. Clip lists -- 1.7.10.4 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PULL] missing registry define, central quirks file
Peter Hutterer peter.hutte...@who-t.net writes: Maarten Lankhorst (1): dix: add missing dixFreeRegistry define Peter Hutterer (1): config: add a quirks file for devices needing special configuration Merged. c21344a..d9005d5 master - master -- keith.pack...@intel.com pgpXpiDHp4Fys.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH] Revert DRI2: re-allocate DRI2 drawable if pixmap serial changes
Eric Anholt e...@anholt.net writes: This reverts commit 3209b094a3b1466b579e8020e12a4f3fa78a5f3f. After a long debug session by Paul Berry, it appears that this was the commit that has been producing sporadic failures in piglit front buffer rendering tests for the last several years. merged. 227015d..77e51d5 master - master -- keith.pack...@intel.com pgp3adSY9gne6.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH] Fix kwin crashes on xrandr update on NX
On Tue, Jun 18, 2013 at 7:51 AM, Timo Aaltonen tjaal...@ubuntu.com wrote: On 06.03.2013 17:19, Timo Aaltonen wrote: https://bugs.freedesktop.org/show_bug.cgi?id=59795 Signed-off-by: Ritesh Khadgaray khadga...@gmail.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net --- src/Xrandr.c |4 1 file changed, 4 insertions(+) diff --git a/src/Xrandr.c b/src/Xrandr.c index b1e97ec..9a56636 100644 --- a/src/Xrandr.c +++ b/src/Xrandr.c @@ -483,6 +483,10 @@ int XRRUpdateConfiguration(XEvent *event) scevent = (XRRScreenChangeNotifyEvent *) event; snum = XRRRootToScreen(dpy, ((XRRScreenChangeNotifyEvent *) event)-root); + /* check for return value, fails on nx */ + if (snum == -1 ) { + return 0; + } if (scevent-rotation (RR_Rotate_90 | RR_Rotate_270)) { dpy-screens[snum].width = scevent-height; dpy-screens[snum].height = scevent-width; should I just push this by now? Yes. Dave. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
[Bug 52952] Ubuntu 10.04.4 LTS 32-bit and ATI Technologies Radeon Xpress 200 for Intel (RC410) ACPI S3 State Resume Failure
https://bugs.freedesktop.org/show_bug.cgi?id=52952 --- Comment #17 from mypersonalmailb...@mail.com --- (In reply to Comment #15) Hi Dant, Since no Linux device driver developers that I know of fix the bugs I report, I kinda gave up on uploading reports to get them to fix. That being said, based on my memory, this is what happens. - This ACPI S3 State bug appears to be related to ATI Technologies Radeon Xpress 200, and affects both AMD and Intel editions - This bug can be worked around by using a PCI Express graphics card instead (assuming that the particular graphics chip doesn't have any issues with ACPI S3 State resume) - See Comment #12 that this bug seems to impact Award/Pheonix BIOS-based mainboard - The Comment #12 implies that AMI BIOS is probably configuring the Radeon Xpress 200 differently than Award/Pheonix BIOS during POST, hence, the graphics device driver happened to work okay with AMI BIOS, but there probably is a bug in the way the graphics device driver is written - All known systems that have this bug have Award/Pheonix BIOS (Intel mainboard, HP Pavilion PC (I forgot the model.), and emachines PC (after flashing the BIOS via flashrom software), if I remember it correctly - The fact that Linux 3.9 kernel still has this bug means that the code for Radeon Xpress 200 hasn't really been updated to fix this embarrassing bug I have at least 3 different ATI Technologies Radeon Xpress 200-based mainboards in my apartment for testing purposes if anyone is willing to fix the bug. Regards, fpgahardwareengineer -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
[Bug 54273] kms blackscreen ATI RV620 FirePro 2260, res: 2560*1600
https://bugs.freedesktop.org/show_bug.cgi?id=54273 --- Comment #39 from John-Michael Mulesa thesaxophon...@gmail.com --- I believe I'm having this issue as well. I have an RV620 Radeon 3470 with two displayport outputs (which are the only two outputs on the card.) Both of my native Displayport displays (HP L2201x and a Dell U2311H, 1920x1080x60 native) go to Input not supported mode as soon as KMS kicks in. However, connecting a DVI display to an active DP-DVI adapter works perfectly. Using fglrx-legacy allows native displayport to work on the card. I've tried on kernel 3.9.0 and 3.10rc6 with the same results. -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
[Bug 54273] kms blackscreen ATI RV620 FirePro 2260, res: 2560*1600
https://bugs.freedesktop.org/show_bug.cgi?id=54273 --- Comment #40 from John-Michael Mulesa thesaxophon...@gmail.com --- Created attachment 81047 -- https://bugs.freedesktop.org/attachment.cgi?id=81047action=edit dmesg DisplayPort-0 has the active DP-DVI adapter with working screen attached DisplayPort-1 has the native displayport with blank screen attached -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
[Bug 54273] kms blackscreen ATI RV620 FirePro 2260, res: 2560*1600
https://bugs.freedesktop.org/show_bug.cgi?id=54273 --- Comment #41 from John-Michael Mulesa thesaxophon...@gmail.com --- Created attachment 81048 -- https://bugs.freedesktop.org/attachment.cgi?id=81048action=edit Xorg.log -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
[Bug 54273] kms blackscreen ATI RV620 FirePro 2260, res: 2560*1600
https://bugs.freedesktop.org/show_bug.cgi?id=54273 John-Michael Mulesa thesaxophon...@gmail.com changed: What|Removed |Added CC||thesaxophon...@gmail.com -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
[Bug 54273] kms blackscreen ATI RV620 FirePro 2260, res: 2560*1600
https://bugs.freedesktop.org/show_bug.cgi?id=54273 --- Comment #42 from John-Michael Mulesa thesaxophon...@gmail.com --- Adding/setting a modeline in xrandr for the native resolution at 80hz (instead of 60hz) works around this problem in X. I noticed my dell monitor was outputting at 56hz when it should have been at 75hz on a lower resolution. There seems to be a 3/4 ratio between what the display sees and what xrandr sees. -- You are receiving this mail because: You are the assignee for the bug. ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati
Re: [PATCH] radeon: Fix a false positive lockup after 10s of inactivity
On Thu, Jun 13, 2013 at 2:22 PM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Jun 12, 2013 at 6:56 AM, Jerome Glisse j.gli...@gmail.com wrote: Andy can you test (without your patch) and see if it helps with your issue : http://people.freedesktop.org/~glisse/0001-drm-radeon-update-lockup-tracking-when-scheduling-in.patch Testing now. I'll report back in a couple of days. 3.9.4 plus this patch has been completely stable for several days now. Tested-by: Andy Lutomirski l...@amacapital.net Can you send this to Linux and -stable? Thanks, Andy ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati