Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Hexi_OLED_SSD1351 by
Revision 8:ae5fad429790, committed 2016-09-24
- Comitter:
- khuang
- Date:
- Sat Sep 24 19:45:48 2016 +0000
- Parent:
- 7:9961c525e249
- Child:
- 9:18d4eb6328eb
- Commit message:
- Commented out checking to see if text will fit in textbox for DrawTextBox. Font width and height specified in font information may be too much.
Changed in this revision
| Hexi_OLED_SSD1351.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Hexi_OLED_SSD1351.cpp Fri Aug 26 22:54:49 2016 +0000
+++ b/Hexi_OLED_SSD1351.cpp Sat Sep 24 19:45:48 2016 +0000
@@ -635,7 +635,8 @@
text_height = selectedFont_height;
-
+ /* Disable this for now.Generated Fontwidth supposedly a lot wider than it really is*/
+ #if 0
if (( oled_dynamic_area.width < text_width )||( oled_dynamic_area.height < text_height ))
{
oled_dynamic_area_t textArea;
@@ -643,6 +644,7 @@
textArea.height = text_height;
SetDynamicArea(&textArea);
}
+ #endif
currentChar_y = ( oled_dynamic_area.height - text_height ) >> 1;
