9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@gmx.de
To: 9fans@9fans.net
Subject: Re: [9fans] Non-VESA video card
Date: Mon,  1 Nov 2010 09:03:01 +0100	[thread overview]
Message-ID: <aa13fdd256ddfd0aecff749b230fe118@gmx.de> (raw)
In-Reply-To: <4CCE083B.2090708@orthanc.ca>

[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]

this is how /sys/src/cmd/vnc/draw.c was changed to not "mouse turd" on
vesa.  have put the changed file in contrib at:
/n/sources/contrib/cinap_lenrek/draw.c

didnt made a patch because its just a work arround, not a real fix.

cpu% diff -c /n/dump/2009/0923/sys/src/cmd/vnc/draw.c draw.c
/n/dump/2009/0923/sys/src/cmd/vnc/draw.c:107,112 - draw.c:107,113
  updatescreen(Rectangle r)
  {
  	int b, bb;
+ 	Image *i;

  	lockdisplay(display);
  	if(r.max.x > Dx(screen->r) || r.max.y > Dy(screen->r)){
/n/dump/2009/0923/sys/src/cmd/vnc/draw.c:117,129 - draw.c:118,138
  		}
  	}

+ 	b = Dx(r) * pixb * Dy(r);
+
+ 	if(i = allocimage(display, r, screen->chan, 0, DNofill)){
+ 		loadimage(i, r, pixbuf, b);
+ 		draw(screen, rectaddpt(r, screen->r.min), i, nil, r.min);
+ 		freeimage(i);
+ 	}
+
  	/*
  	 * assume load image fails only because of resize
- 	 */
- 	b = Dx(r) * pixb * Dy(r);
  	bb = loadimage(screen, rectaddpt(r, screen->r.min), pixbuf, b);
  	if(bb != b && verbose)
  		fprint(2, "loadimage %d on %R for %R returned %d: %r\n", b, rectaddpt(r, screen->r.min), screen->r, bb);
+ 	 */
+
  	unlockdisplay(display);
  }

--
cinap

[-- Attachment #2: Type: message/rfc822, Size: 2967 bytes --]

From: Lyndon Nerenberg <lyndon@orthanc.ca>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Non-VESA video card
Date: Sun, 31 Oct 2010 17:22:19 -0700
Message-ID: <4CCE083B.2090708@orthanc.ca>

On 10-10-31 5:13 PM, erik quanstrom wrote:
> what's the restriction you're not telling us?

Mouse turds in the VNC client when running VESA mode.

  parent reply	other threads:[~2010-11-01  8:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27 17:12 Lyndon Nerenberg
2010-10-31  6:21 ` Ethan Grammatikidis
2010-10-31  8:57   ` pmarin
2010-10-31 20:35   ` Lyndon Nerenberg
2010-11-01  0:13     ` erik quanstrom
2010-11-01  0:22       ` Lyndon Nerenberg
2010-11-01  0:48         ` erik quanstrom
2010-11-01  7:23         ` cinap_lenrek
2010-11-01  8:03         ` cinap_lenrek [this message]
2010-11-02  1:04           ` Lyndon Nerenberg (VE6BBM/VE7TFX)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa13fdd256ddfd0aecff749b230fe118@gmx.de \
    --to=cinap_lenrek@gmx.de \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).