📄 changelog
字号:
2002-05-05 Russell Marks <russell.marks@ntlworld.com> * Version 5.6. * src/modesel.c: added 15/16/24/32-bit 320x240 modes. Thanks to Michal Svec for suggesting this. Currently only the 24/32-bit mode is selectable directly (using `^', on the assumption that it's shift-6 - unshifted 6 selects 320x240x8).2002-04-15 Russell Marks <russell.marks@ntlworld.com> * src/vgadisp.c (draw_rb_menu): if a 32-bit mode existed without a corresponding 24-bit mode, and it was one of the modes which are listed on the viewer right-button menu, then it was incorrectly `greyed out', i.e. made unavailable from the menu. Thanks for Dimitar Zhekov for spotting this.2002-04-07 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c: added multi-file delete. This is on `D', by analogy with `C' and `M' for copy/move (since it works the same way) - the single-file-only delete remains available on the Delete key. A new config variable `delete-tagged-prompt' says whether to prompt before deleting all tagged files (enabled by default). Thanks to Max Drozdoff again, for prodding me into action on this. :-)2002-03-31 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c (delete_file): when using `delete-single-prompt off', it previously didn't update the screen after the deletion. Thanks to Max Drozdoff for spotting this one.2001-11-01 Russell Marks <russell.marks@ntlworld.com> * src/readgif.c (read_gif_file): in the very unusual case of both global and local colourmaps being present, they were applied in the wrong order. Thanks to Michal Svec for spotting this.2001-10-25 Russell Marks <russell.marks@ntlworld.com> * src/rcfile.c: removed `--version-svgalib' option, this was causing trouble when compiling with old versions of svgalib.2001-10-24 Russell Marks <russell.marks@ntlworld.com> * src/readtga.c (fix16bit): should now support 16-bit RGB files. 16-bit palette-based files *may* also work now, but are untested - it's not all that easy to find samples of these rather unusual types of TGA file. Thanks to Michal Svec for spotting the problem.2001-10-21 Russell Marks <russell.marks@ntlworld.com> * src/rcfile.c (usage_help): new `-A' or `--auto-animate' option, forces the viewer to automatically animate multiple-image GIF files. Thanks to John Fitzgerald for suggesting this (more or less). It limits your viewing options greatly, of course (since it's like pressing `e' every time you view one, and exiting the image when you exit the animation), but can be handy for slideshows etc. When this option is enabled, you can use Backspace/Enter/Space for file navigation/tagging during an animation. (The skip-to-next-frame key (previously Enter) is now `n'.)2001-10-04 Russell Marks <russell.marks@ntlworld.com> * Version 5.5. * src/Makefile (clean): now removes rcfile_*.h, which are easily rebuilt. * src/readbmp.c (read_bmp_file): don't implicitly assume function calls in expressions are evaluated left-to-right when calculating offset. (read_bmp_file): fix for progress indicator when using BMP's utterly bizarre move-loading-position code which, happily, no-one actually seems to use. :-) Thanks to Jakub Bogusz again. * src/zgv.c (showhowfar): now ensures sofar is no greater than total, rather than assuming caller gives valid input. (xv332_how_far): same change as above.2001-09-30 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c (recursive_update): recursive thumbnail update, ported from xzgv.2001-09-29 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c: renamed "Show filename" menu item to "Show file info". * src/3deffects.c (msgbox): rewritten file-details dialog, now gives more info and looks rather better. (Based on the one xzgv has.) * src/zgv.c (makexv332): now generates correct height comment for animated GIFs. (showgifdir): no longer undraws/redraws scrollbar unnecessarily during thumbnail update. * src/readbmp.c (read_bmp_file): fixed many, many places where it could leak a file descriptor on failing to load an image. (read_bmp_file): fixed RLE corruption and possible segfault. Thanks to Jakub Bogusz for the patch. (read_bmp_file): added bounds-checking, which should catch problems with corrupt files. There was a definite chance of a local DoS previously (given a maliciously-corrupted file). Thanks to Jakub Bogusz again for pointing this out. Ghod, I hadn't realised the BMP format was so evil as to have a `move current position' thing... ugh... :-( (read_bmp_file): 8-bit non-RLE was reading a full line, rather than only the valid pixels in it, which corrupted the edges - fixed.2001-09-22 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c (inithowfar): now uses drawbutton(). Removed inner bevel. Changed old "Decompressing" text to "Reading". * src/scrollbar.c: now uses drawbutton() to draw arrow buttons and slider. * src/3deffects.c (drawbutton): all `buttons' are now drawn in a GTK+-ish manner, and thus no longer look so crap. :-) * src/helppage.c (showhelp): dropped the decidedly unhelpful `3D' text in help pages, they just draw normal text now. * src/scrollbar.c (draw_scrollbar_main_empty): halved empty-scrollbar `depth'. Makes more sense :-), and makes it a bit clearer. * src/zgv.c: redesigned selector screen somewhat. The logo is gone, replaced with something nearer to a `title bar', and the directory name moves there. The inner bevels around blocks of screen are gone. Along with making the longest displayable filename a tiny bit shorter (half-a-char on average), this means that the default display shows 5x4 thumbnails rather than 4x3. The scrollbar is now enabled by default whether you're using a mouse or not, to make your position in the file list clearer. The fullscreen-selector toggle (on `f' and `z') is gone, as is the old `fullsel' option which matched it (it now gives a warning). * src/vgadisp.c (redrawgif): scaling up previously drew an entire line unnecessarily for images which remained smaller than the screen when scaled up - fixed. * doc/sample.zgvrc: converted to use new option names. Also tweaked the layout slightly.2001-09-20 Russell Marks <russell.marks@ntlworld.com> * src/rcfile.c (parsecommandline): added GNU-style long-option support, and changed/reorganised config file option names to suit this; see `Invoking zgv' in info file or `OPTIONS' in man page. Essentially things are a lot more xzgv-like now. That said, most old option names are still supported in config files, so it shouldn't break things. (defaultcfg): removed `hicontrol' option; being able to disable it was always of questionable value with it being such an obviously Good Thing. zgv now always acts as if the option were enabled (i.e. no change in default behaviour), and gives a warning if the option is mentioned. Also removed `hicolmodes', which has long been obsolete, with a similar warning if it's seen. (parsecommandline): the `centre' setting can no longer be toggled on the command-line with the `-c' option. (But now you can use `--centre=off' to disable it.) * src/vgadisp.c (animate_gif): now supports animation with the same orientation as the normal picture. (So for example you can flip the picture, and the animation will be of similarly flipped frames.) (showgif): optional black background in 8-bit modes, disabled by default (use the `black-background' config file option to enable). It works by swapping the nearest-to-black palette index with the zero index, and altering the in-memory image to match. This can be rather nice for consistency with high-colour images, but means 8-bit images can take longer to appear. (animate_gif): animating in zoom mode no longer pointlessly clears the screen for each frame. * doc/zgv.texi (Supported File Formats): the default location of rgb.txt changed some time back, updated the mention here.2001-09-18 Russell Marks <russell.marks@ntlworld.com> * src/vgadisp.c: made repeat_sig a volatile int, though in practice I seem to have got away with this before. :-) (animate_gif): GIF animation speed is now much, much more accurate; it previously tended to run rather slowly. * src/vgadisp.c (showgif): didn't previously do the required redraw when toggling fakecols (with `F') when in 16-colour mode. * src/3deffects.c (msgbox): message boxes can now pop up over the existing viewer screen in most cases (i.e. in any mode which is 640x480 or higher), using much the same approach as the mouse menu does. This means that e.g. doing `:' in the viewer to get file info generally doesn't need a mode switch any more.2001-09-09 Russell Marks <russell.marks@ntlworld.com> * src/readgif.c (outputstring): broken GIFs could overrun a buffer previously - fixed. Any DoS exploit would have been rather non-trivial, as it was a static buffer with overruns `carefully' limited to 12k. (Yes, this was a weird one... :-))2001-07-21 Russell Marks <russell.marks@ntlworld.com> * src/zgv.c (showerrmessage): fixed buffer overrun. The source string was from JPEG/PNG library error messages, though, so in practice I doubt any DoS exploit was possible. * SECURITY: slight correction - you don't have to own the console to run zgv if you're running as root. Doesn't really make any difference to what I was saying given the context, but worth getting it right. * src/zgv.c (rename_file): used to implicitly rely on the buffer used in 3deffects.c's cm_getline() being exactly 256 bytes to avoid a buffer overrun. This did happen to work (since it *is*), but, yuck. Fixed that, and took the opportunity to avoid some duplicated code, too.2001-06-30 Russell Marks <russell.marks@ntlworld.com> * Version 5.4. * Changed email address most places to my svgalib.org one.2001-06-21 Russell Marks <russell.marks@ntlworld.com> * src/3deffects.c (msgbox): now only changes mode for error if it has to (thanks to Wim Osterholt for spotting this). There's little real benefit in this change at the moment, but it makes it consistent with mode change behaviour elsewhere, and will be useful if it's ever changed to try and stick in the same mode where possible (as it really ought to...).2001-06-13 Russell Marks <russell.marks@ntlworld.com> * src/vgadisp.c (setmode_or_clear): previously set the mode to `curvgamode' rather than `newmode' - fixed that. But luckily, it's always been called with newmode==curvgamode. :-)2001-06-04 Russell Marks <russell.marks@ntlworld.com> * src/rcfile.c (getbool): now allows `1' and `0' as alternatives to `on'/`off' and `yes'/`no' for boolean option setting. Also made the documentation a bit clearer about how bools can be set. Thanks to Johannes Zellner for indirectly noticing the problem. * src/zgv.c (ispicture): you can now optionally use magic-number testing to choose which files to list in the selector (Alt-m toggles it, and `fsmagic' is the relevant config file var). This approach is much slower, but useful when you have files lacking extensions. Thanks to Dank
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -