Changeset 534
- Timestamp:
- Mar 6, 2006, 3:17:42 PM (15 years ago)
- Location:
- libcaca/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/caca.h
r527 r534 182 182 unsigned int caca_get_window_width(caca_t *kk); 183 183 unsigned int caca_get_window_height(caca_t *kk); 184 void caca_set_size(caca_t *kk, unsigned int width, unsigned int height);185 void caca_set_width(caca_t *kk, unsigned int width);186 void caca_set_height(caca_t *kk, unsigned int height);187 184 int caca_set_window_title(caca_t *kk, char const *); 188 185 /* @} */ -
libcaca/trunk/src/graphics.c
r533 r534 825 825 } 826 826 827 828 /** \brief Set the size of the display on devices that permit it829 *830 * This function sets the display width and height, on devices831 * that permit it. We're talking here about the size in832 * CHARACTERS fo the window, NOT in pixels.833 * \param width The width of the window, in CHARACTERS.834 * \param heigth The height of the window, in CHARACTERS.835 */836 void caca_set_size(caca_t *kk, unsigned int width, unsigned int height)837 {838 kk->qq->width = width;839 kk->qq->height = height;840 }841 842 843 844 /** \brief Set the width of the window, in characters, if device permits it.845 *846 * This function sets the width of displayable image, in characters.847 * \param width The width of the window, in CHARACTERS.848 */849 void caca_set_width(caca_t *kk, unsigned int width)850 {851 kk->qq->width = width;852 }853 /** \brief Set the height of the window, in characters, if device permits it.854 *855 * This function sets the height of displayable image, in characters.856 * \param width The width of the window, in CHARACTERS.857 */858 void caca_set_height(caca_t *kk, unsigned int height)859 {860 kk->qq->height = height;861 }862 863 864 865 827 /** \brief Set the refresh delay. 866 828 *
Note: See TracChangeset
for help on using the changeset viewer.