9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] libdraw_α_differences_between_plan_9 _and_p9p
@ 2006-03-31 16:59 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2006-03-31 16:59 UTC (permalink / raw)
  To: 9fans

evidently i've found a bug in upas/marshal, too.

- erik

On Fri Mar 31 10:28:27 CST 2006, quanstro@quanstro.net wrote:
> i've noticed a difference in how the α channel looks in p9p vs.
> plan 9. for example when porting mahjongg to plan9port,
> i need to make this change to make the selection highlighting
> apparent:
> 
> /sys/src/games/mahjongg//mahjongg.c:75,81 - ./mahjongg.c:75,81
>   {
>   	Rectangle one = Rect(0, 0, 1, 1);
>   	
> - 	selected = eallocimage(one, 1, RGBA32, setalpha(DPalebluegreen, 0x5f));
> + 	selected = eallocimage(one, 1, RGBA32, setalpha(DPalebluegreen, 0x9f));
> 
> is a mapping needed to convert libdraw α values to X?
> 
> - erik
> 
> p.s. p9p mahjongg is on sources but it's missing the tile sets and lib configuration.
> 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-31 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-31 16:59 [9fans] libdraw_α_differences_between_plan_9 _and_p9p erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).