TCOD

 view release on metacpan or  search on metacpan

lib/TCOD/Sys.pod  view on Meta::CPAN


You can get the size in pixels of the characters in the font.

=head2 get_current_resolution

    ( $w, $h ) = TCOD::Sys::get_current_resolution;

You can get the current screen resolution with
L<get_current_resolution|/get_current_resolution>.

You can use it for example to get the desktop resolution before initialising
the root console.

=head2 force_fullscreen_resolution

    TCOD::Sys::force_fullscreen_resolution( $width, $height );

This function allows you to force the use of a specific resolution in
fullscreen mode. The default resolution depends on the root console size
and the font character size.



( run in 0.387 second using v1.01-cache-2.11-cpan-299005ec8e3 )