From 152f8b4aff62607967ad2ca3668d50781855b84d Mon Sep 17 00:00:00 2001 From: robijn Date: Sun, 10 Feb 2002 14:22:17 +0000 Subject: [PATCH] Added width and height functions (I forgot them at the v0.5 kick-off). --- server/drivers/t6963.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/server/drivers/t6963.c b/server/drivers/t6963.c index 7a4bf9b..88ecdd1 100644 --- a/server/drivers/t6963.c +++ b/server/drivers/t6963.c @@ -139,6 +139,8 @@ t6963_init (Driver *drvthis, char *args) drvthis->supports_multiple = &supports_multiple; // Set the functions the driver supports + drvthis->width = t6963_width; + drvthis->height = t6963_height; drvthis->clear = t6963_clear; drvthis->string = t6963_string; drvthis->chr = t6963_chr; @@ -211,6 +213,24 @@ t6963_close (Driver *drvthis) t6963_display_buffer2 = NULL; } +///////////////////////////////////////////////////////////////// +// Returns the display width +// +MODULE_EXPORT int +t6963_width (Driver *drvthis) +{ + return width; +} + +///////////////////////////////////////////////////////////////// +// Returns the display height +// +MODULE_EXPORT int +t6963_height (Driver *drvthis) +{ + return height; +} + ///////////////////////////////////////////////////////////////// // Clears the LCD screen //