temp fix for bug fixed in mspgcc LTS but not in ubuntu 11.10

This commit is contained in:
matthias.ringwald 2011-09-18 19:26:48 +00:00
parent e889812346
commit 5efc935a3a

View File

@ -623,8 +623,10 @@ void halLcdDrawTextBlock(unsigned int Value)
*************************************************************************/
void halLcdPrint( char String[], unsigned char TextStyle)
{
int Address;
int LCD_MEM_Add;
int ActualAddress;
int i, j, Counter=0, BlockValue;
int Address, LCD_MEM_Add, ActualAddress;
int temp;
char LookUpChar;
@ -646,6 +648,8 @@ void halLcdPrint( char String[], unsigned char TextStyle)
BlockValue = LCD_MEM[ LCD_MEM_Add ];
#if 0
// work around a mspgcc bug - fixed in LTS but not in 11.10 yet
if (TextStyle & INVERT_TEXT)
if (TextStyle & OVERWRITE_TEXT)
BlockValue = 0xFFFF - fonts[LookUpChar*13+j];
@ -657,7 +661,14 @@ void halLcdPrint( char String[], unsigned char TextStyle)
BlockValue = fonts[LookUpChar*(FONT_HEIGHT+1) +j];
else
BlockValue |= fonts[LookUpChar*(FONT_HEIGHT+1) +j];
#else
int offset = j;
while (LookUpChar) {
offset += FONT_HEIGHT + 1;
LookUpChar--;
}
BlockValue |= fonts[offset];
#endif
halLcdDrawBlock( Address, BlockValue);
}