From 92ef8499f1b003af1289ddd27b548994387e560a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 6 Mar 2006 14:17:42 +0000 Subject: [PATCH] * Removed caca_set_{size,width,height} because cucul_set_size ought to be enough for everyone. Maybe I'll reintroduce caca_set_size sometime in the future because it's libcaca who gets the resize events, after all. --- src/caca.h | 3 --- src/graphics.c | 38 -------------------------------------- 2 files changed, 41 deletions(-) diff --git a/src/caca.h b/src/caca.h index 778082c..f51f748 100644 --- a/src/caca.h +++ b/src/caca.h @@ -181,9 +181,6 @@ void caca_display(caca_t *kk); unsigned int caca_get_rendertime(caca_t *kk); unsigned int caca_get_window_width(caca_t *kk); unsigned int caca_get_window_height(caca_t *kk); -void caca_set_size(caca_t *kk, unsigned int width, unsigned int height); -void caca_set_width(caca_t *kk, unsigned int width); -void caca_set_height(caca_t *kk, unsigned int height); int caca_set_window_title(caca_t *kk, char const *); /* @} */ diff --git a/src/graphics.c b/src/graphics.c index 9be14df..4c66235 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -824,44 +824,6 @@ unsigned int caca_get_window_height(caca_t *kk) return kk->qq->height * 10; } - -/** \brief Set the size of the display on devices that permit it - * - * This function sets the display width and height, on devices - * that permit it. We're talking here about the size in - * CHARACTERS fo the window, NOT in pixels. - * \param width The width of the window, in CHARACTERS. - * \param heigth The height of the window, in CHARACTERS. - */ -void caca_set_size(caca_t *kk, unsigned int width, unsigned int height) -{ - kk->qq->width = width; - kk->qq->height = height; -} - - - -/** \brief Set the width of the window, in characters, if device permits it. - * - * This function sets the width of displayable image, in characters. - * \param width The width of the window, in CHARACTERS. - */ -void caca_set_width(caca_t *kk, unsigned int width) -{ - kk->qq->width = width; -} -/** \brief Set the height of the window, in characters, if device permits it. - * - * This function sets the height of displayable image, in characters. - * \param width The width of the window, in CHARACTERS. - */ -void caca_set_height(caca_t *kk, unsigned int height) -{ - kk->qq->height = height; -} - - - /** \brief Set the refresh delay. * * This function sets the refresh delay in microseconds. The refresh delay