Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Don't use full display / Spare a little border

1 view
Skip to first unread message

davids

unread,
Dec 16, 2009, 5:32:41 AM12/16/09
to
Hi,

Maybe this Group isn't the correct.

I use an TI-OMAP3530 (with Board Support Package from BSquare) and it works good.

On our hardware design we use a display with 800x480px. This display is Landscape (We want to use this display later in Portrait mode) and has a bigger border for the backlight LEDs on the lower side. Our device is in small size, so the border for the LEDs is masked by the box. For design reasons the opposite side of the display is masked too, so the display is cut a little bit (30 lines) on the upper side.
In the device driver for display I can set the timing parameters for front and back porches, so I have added a higher timing for the porch instead of the pix data. This generally works, so Windows only use the small area of the display. But the display doubles the very last line for the spared area. So I have the typical windows gray of the taskbar (other side) in the area I want to spare... This is a problem, because the "box" (actual it is the panel for the touch) is black but don't cover the display with 100%, I can see a little bit the gray pixs due to transparency.
Is there a better solution to "cut" the display, i.e. Windows paint the remaining pixels black? After I rotate the screen, this spared area will be the right border...

Thanks in advance,
Best regards,
David.


Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET Color Tool Derived from Reflection
http://www.eggheadcafe.com/tutorials/aspnet/a657aa86-1abe-4a5f-9c04-bb778fb8bfb7/aspnet-color-tool-derive.aspx

Valter Minute [eMVP]

unread,
Dec 21, 2009, 9:20:25 AM12/21/09
to
On 12/16/2009 11:32 AM, David S wrote:
> Hi,
>
> Maybe this Group isn't the correct.
>
> I use an TI-OMAP3530 (with Board Support Package from BSquare) and it works good.
>
> On our hardware design we use a display with 800x480px. This display is Landscape (We want to use this display later in Portrait mode) and has a bigger border for the backlight LEDs on the lower side. Our device is in small size, so the border for the LEDs is masked by the box. For design reasons the opposite side of the display is masked too, so the display is cut a little bit (30 lines) on the upper side.
> In the device driver for display I can set the timing parameters for front and back porches, so I have added a higher timing for the porch instead of the pix data. This generally works, so Windows only use the small area of the display. But the display doubles the very last line for the spared area. So I have the typical windows gray of the taskbar (other side) in the area I want to spare... This is a problem, because the "box" (actual it is the panel for the touch) is black but don't cover the display with 100%, I can see a little bit the gray pixs due to transparency.
> Is there a better solution to "cut" the display, i.e. Windows paint the remaining pixels black? After I rotate the screen, this spared area will be the right border...

You can handle this in your video driver (adding an offset to the memory
area used by the system as "video memory" and configuring the "stride"
of your display (the size in bytes of a row of pixel that may not be
equal to the exact size of a row calculated by simply multiplying the
number of pixels by the bit per pixels).

A platform independent solution requires a customization of Window CE UI
(supported by GWES) to implement your own version of the
NonClientView_t::BoundingRect function, forcing a different size for
top-level windows and leaving them out of the non-visible area.
There is an (old) article from Mike Hall and Steve Mailled about this
topic on MSDN:
http://msdn.microsoft.com/en-us/library/aa459146.aspx

--
Valter Minute (eMVP)
Training, support and development for Windows CE:
www.fortechembeddedlabs.it
My embedded programming and cooking blog:
www.geekswithblogs.net/WindowsEmbeddedCookbook
Windows Embedded support forums in Italian:
http://social.msdn.microsoft.com/Forums/it-IT/windowsembeddedit/threads
(the reply address of this message is invalid)

davids

unread,
Jan 4, 2010, 10:46:54 AM1/4/10
to
Thanks for the reaction.

The problem is, I don't find code for an video driver. The lca_vga.c of the BSP only set many registers in OMAP with timings for vsync, frequencys and panel size (where I have subtract my border pixels, which should be now outside the back porch of the signal).

In the boot (EBOOT) code, which also need same register settings, I fill the panel with colors (4 windows color), there I surely insert black color somewhere in the buffer, but on the windows side?
Or is there a common windows driver part, which I haven't found yet, which does exactly this filling?

Valter Minute [eMVP] wrote:

On 12/16/2009 11:32 AM, David S wrote:You can handle this in your video driver
21-Dec-09

Previous Posts In This Thread:

On Wednesday, December 16, 2009 5:32 AM
David S wrote:

Don't use full display / Spare a little border
Hi,

Maybe this Group isn't the correct.

I use an TI-OMAP3530 (with Board Support Package from BSquare) and it works good.

On our hardware design we use a display with 800x480px. This display is Landscape (We want to use this display later in Portrait mode) and has a bigger border for the backlight LEDs on the lower side. Our device is in small size, so the border for the LEDs is masked by the box. For design reasons the opposite side of the display is masked too, so the display is cut a little bit (30 lines) on the upper side.
In the device driver for display I can set the timing parameters for front and back porches, so I have added a higher timing for the porch instead of the pix data. This generally works, so Windows only use the small area of the display. But the display doubles the very last line for the spared area. So I have the typical windows gray of the taskbar (other side) in the area I want to spare... This is a problem, because the "box" (actual it is the panel for the touch) is black but don't cover the display with 100%, I can see a little bit the gray pixs due to transparency.
Is there a better solution to "cut" the display, i.e. Windows paint the remaining pixels black? After I rotate the screen, this spared area will be the right border...

Thanks in advance,
Best regards,
David.

On Monday, December 21, 2009 9:20 AM
Valter Minute [eMVP] wrote:

On 12/16/2009 11:32 AM, David S wrote:You can handle this in your video driver

Submitted via EggHeadCafe - Software Developer Portal of Choice

Convert HTML to Javascript for include files
http://www.eggheadcafe.com/tutorials/aspnet/1ff06166-70f0-4ef5-935f-89ab01e4d1b7/convert-html-to-javascrip.aspx

0 new messages