- Fix a crash on login for people running on X.org 7.2 in 24-bit color depth

PR:		ports/113216, ports/113678
Submitted by:	Thomas Spreng <spreng@socket.ch>
Approved by:	maintainer timeout (obrien; 18 days)
This commit is contained in:
Pav Lucistnik 2007-06-19 08:55:11 +00:00
parent a11bafb022
commit e5ea62c715
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193855
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= rdesktop PORTNAME= rdesktop
PORTVERSION= 1.5.0 PORTVERSION= 1.5.0
PORTREVISION?= 1 PORTREVISION?= 2
CATEGORIES= net comms CATEGORIES= net comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,11 @@
--- xwin.c.orig Fri Jun 1 10:27:15 2007
+++ xwin.c Fri Jun 1 10:28:26 2007
@@ -3219,7 +3219,7 @@
return;
image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
- (char *) data, cx, cy, BitmapPad(g_display), cx * g_bpp / 8);
+ (char *) data, cx, cy, g_bpp, 0);
if (g_ownbackstore)
{