[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcaca] Re: higher resolution in win32



On Wed, Aug 25, 2004, Tom Blauwendraat wrote:

> I could make a patch to put it in the code permanently, but I was just
> wondering what the general plan was to support multiple resolutions
> in libcaca. As far as I know there is no "set_resolution"-like
> function yet; the (ugly) way I implemented it is as a parameter to
> init_graphics() that specifies the video mode, but maybe it should be
> a kind of function like:

   As of now, this is done using the CACA_GEOMETRY environment variable,
see src/graphics.c around line 720 for an example. I think your patch
would fit perfectly in _caca_init_graphics().

> Also, if this function will be implemented for Win32, it should also
> be implemented for all the other OS-es. By the way, if the function
> already existed but I missed it, please slap me :-)
>
> Any ideas on how I should implement it, and any quick tips on how
> to become a contributor to the project? Do I need to subscribe to
> SourceForge or something?

   I am yet unsure about this. I can think of three different (though
related) uses for libcaca:

   1. render stuff in an already opened text terminal.
   2. render stuff in a new window or terminal.
   3. render stuff in memory, and use additional code to render
      the resulting text array (eg. HTML output).

   Currently only 1. and 2. are implemented. Your code is useful for 2.
but since I want to do 3. in the future this means a big API change to
separate image to text processing from real rendering, so I don't know
where your code will end.

   Currently I am working on a better colour dithering method, using
ideas from "Multi-Color and Artistic Dithering" by Ostromoukhov and
Hersch, so I don't think this API change will happen soon.

   As for becoming a contributor, it's currently by sending patches to
me or the mailing-list. The project is not hosted on SourceForge because
it uses SVN (SF only has CVS). I may give write access to SVN but not
until I have seen some code.

Regards,
-- 
Sam.
-- 
This is the libcaca mailing-list, see http://sam.zoy.org/projects/libcaca/
Trouble unsubscribing? Please contact <sam@zoy.org>
List archives are at http://sam.zoy.org/projects/libcaca/threads.html