From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] cmp_bmp: allow negative X, Y values for display command
Date: Fri, 27 Aug 2010 13:46:43 +0200 [thread overview]
Message-ID: <m239u0p9b0.fsf@ohwell.denx.de> (raw)
In-Reply-To: <1282772210-27066-1-git-send-email-timur@freescale.com> (Timur Tabi's message of "Wed, 25 Aug 2010 16:36:50 -0500")
Hi Timur,
> The 'bmp display' command accepts optional X and Y values for the position
> of the image to be displayed. Change the code which parses the command line
> to accept negative values.
>
> This feature is useful if you want to use a frame buffer for the console, and
> you want a banner displayed on the top of the screen that never scrolls off.
> This can be accomplished by declaring that the width and height of the video
> screen is smaller than it really is, and then drawing an image in the
> undeclared area.
>
> For example, if you have 1280x1024 monitor, and you want to display a banner
> on the top of the screen that's 100 pixels tall, then video_hw_init() should
> say that display is really 1280x924, and then the banner should be drawn at
> position (0, -100).
Ugh. I have to admit that I really dislike this patch. What you
effectively do is to erase the "aboluteness" of coordinates. Instead of
the current 1:1 correspondence between a pixel coordinate and its
location on the physical display, you introduce virtual coordinates
without any possibility to inquire about the virtual coordinate system
in use.
Currently if we display an image at (0, 0) we can be sure that it
appears at the edge of the display. With your system one cannot tell
without knowing the complete context.
Can't you come up with a scheme which does not destroy this valuable
property of our coordinates?
Cheers
Detlev
--
When you loosen yourself from all the obvious delusions - religion,
ideology, Communism - you're still left with the myth of your own
goodness. Which is the final delusion.
-- Philip Roth
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2010-08-27 11:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 21:36 [U-Boot] [PATCH 2/2] cmp_bmp: allow negative X, Y values for display command Timur Tabi
2010-08-27 11:46 ` Detlev Zundel [this message]
2010-08-27 12:00 ` Tabi Timur-B04825
2010-08-27 13:14 ` Detlev Zundel
2010-08-27 14:00 ` Tabi Timur-B04825
2010-08-27 14:10 ` Reinhard Meyer
2010-08-27 14:28 ` Tabi Timur-B04825
2010-08-27 20:51 ` Timur Tabi
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=m239u0p9b0.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.