Commit graph

10 commits

Author SHA1 Message Date
Teruaki Kawashima
5bd0823749 jpeg,png: Merge user interface code and plugin entry point of the two plugins (part of FS#6321).
* Created new directory, imageviewer/ and moved both jpeg/ and png/ under it.
- this still doesn't merge the two plugins. i.e. both jpeg.rock and png.rock will be made for color targets.
- I'm thinking to merge the two plugins to single image viewer later.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24272 a1c6a512-1295-4272-9138-f99709370657
2010-01-18 12:46:19 +00:00
Teruaki Kawashima
8ef2248f7c jpeg,png: Change "Off: Quit." to "Show Menu: Quit." so that the message is less confusable.
fix bug plug_buf is always false in simulator even when plugin buffer is used.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24093 a1c6a512-1295-4272-9138-f99709370657
2009-12-21 15:20:33 +00:00
Teruaki Kawashima
3e2aba0c3e jpeg,png: Separate code to load file from load_and_show().
Add a way to abort loading to jpeg inspired by png.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24075 a1c6a512-1295-4272-9138-f99709370657
2009-12-18 13:06:21 +00:00
Teruaki Kawashima
ce63faa8d4 png: Change zoom in/out method and don't center the view on zoom.
Don't recalculate resized width or height each time.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23847 a1c6a512-1295-4272-9138-f99709370657
2009-12-04 13:38:51 +00:00
Teruaki Kawashima
3444716203 jpeg/png: Remove erased file name from list of file when change file.
Change trivial check of entries (entries is always > 0).
Fix bug of r23632 that error message is shown when change file while there is only one file.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23662 a1c6a512-1295-4272-9138-f99709370657
2009-11-18 13:54:14 +00:00
Teruaki Kawashima
d1a3060ddd jpeg/png: refactor use of buf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23655 a1c6a512-1295-4272-9138-f99709370657
2009-11-17 15:15:29 +00:00
Teruaki Kawashima
09c26581a5 jpeg/png: change file list handling a bit.
* don't sort by plugin, use order of browser.
* skip directories.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23632 a1c6a512-1295-4272-9138-f99709370657
2009-11-15 16:14:45 +00:00
Teruaki Kawashima
5e31d059aa jpeg/png: unify code to display image to draw_image(_rect).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23631 a1c6a512-1295-4272-9138-f99709370657
2009-11-15 14:03:57 +00:00
Frank Gevaerts
81d7bf9f21 Fix some casts from pointer to int, now cast to intptr_t
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22038 a1c6a512-1295-4272-9138-f99709370657
2009-07-25 21:45:26 +00:00
Frank Gevaerts
a175e3a42a Add a png viewer plugin
Author: Christophe Gouiran
Flyspray: FS#9493


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22037 a1c6a512-1295-4272-9138-f99709370657
2009-07-25 21:36:11 +00:00