[4522] in Athena Bugs

home help back first fref pref prev next nref lref last post

Motif 1.0.A - bug in Mrmicon.c

daemon@ATHENA.MIT.EDU (Robert S. French)
Wed Mar 14 13:03:15 1990

Date: Wed, 14 Mar 90 13:02:59 -0500
From: "Robert S. French" <rfrench@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: djf@ATHENA.MIT.EDU
(Dave, could you install this patch soon on the Athena sources?  It is
causing serious problems for DesignView)

           ** Mail this report to bugs@athena.mit.edu **
	      ** it will be forwarded to the OSF **

			OSF/Motif Problem Report
		  =================================

Please be aware that this file may be parsed by machine.  Please
do not change the field names.  Please remove the brackets <>
around any field that you fill in.


Submitter Information (Include Email address at miminum) 
---------------------

Submitter Name:	Robert S. French
Organization:	MIT Project Athena
Email Address:	rfrench@athena.mit.edu
Phone:		617-253-7788


Hardware/Software Configuration
-------------------------------

Offering and Version:	Motif 1.0.A
Component (Module):	Mrm - Mrmicon.c
OSF License Number:	23
Client Hardware:	RT, SPARCstation, and others
Client Software:	Athena 6.4R (BSD 4.3 with mods), X11R3
Server Hardware:	SAME AS CLIENT
Server Software:	SAME AS CLIENT
Compiler:		Doesn't matter

Problem Description
-------------------

Severity Level:

	Severe -- represents a problem which resulted in software functionality
			limitation but had alternative work-around.

Date of First Occurrence:

	<Date problem was first noticed (optional)>

One Line Description:

	Bitmaps read in from a UIL file are bit-flipped on some architectures.

Full Description:

	Mrmicon.c does not take into account the server bitmap bit
order when creating an image.  It creates the image in LSBFirst
format, and then calls XPutImage with the bit order as MSBFirst on
some architectures.  This is because the "image" structure is returned
by XCreateImage, which contains architecture-dependent fields.  This
only happens on monochrome screens.

Repeat By:

	Create a bitmap in UIL.  Try to display it on an RT or Sparc.
It's ugly.

Proposed Solution:

	Replace the routine Urm__MapIconBitmap in Mrmicon.c with the
version from Motif 1.0.1.

home help back first fref pref prev next nref lref last post