<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Since you can only blit pictures on an X server and cannot get a direct
pointer to the video memory, I do not know what your problem is. You
can just allocate a 32 bit offscreen buffer in the address space of
your application and blit it via the X server to the 16 bit video
memory (draw). The XO-1 has bit depth converter hardware so it will not
be slower in theory.<br>
Note that you cannot use the video overlay for this because it has only
YUV and RGB-565 modes on the XO-1 and there is a bug in X that the
overlay will be garbage after a suspend and it was not fixed last time
I checked. (I have told that I would fix it but because I could not
figure out how to compile stuff for the XO-1 - like recompiling the
kernel and the X server - I did not fix that.)<br>
<br>
If you need it then I could search for the code I have used but it
would take some time...<br>
<br>
shivaprasad javali wrote:
<blockquote
 cite="mid:116515211001262214y5a472738j127baf281c581e08@mail.gmail.com"
 type="cite">Hi All,<br>
        We are developing an Activity for the XO. During development we
ran into an issue with the default screen depth on the XO. Our
application assumes that the screen depth is 32 and does all the draw
math. But as the screen depth on the XO is 16 we had to do constant 32
bit- 16 bit conversions which really hit performance. So we put in
script to run after installing our activity which changes the default
screen depth on the XO from 16 to 32 bit.<br>
  <br>
        I wanted to know how much of an issue this would be for other
activities running on the XO. Would they be adversely affected by this
change?<br>
  <br>
Thanks<br>
Shivaprasad<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.laptop.org/listinfo/devel">http://lists.laptop.org/listinfo/devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>