Changed: Formatting

This commit is contained in:
kervala 2013-08-26 12:34:04 +02:00
parent 881912fa34
commit 6d10e3189c
3 changed files with 12 additions and 7 deletions

View file

@ -242,8 +242,8 @@ void CComputedString::render2DClip (IDriver& driver, CRenderStringBuffer &rdrBuf
uint lastIndex = 0;
for(uint i=0;i<numVerts;i++)
{
if(count==4){
if(count==4)
{
if(!LetterColors.empty())
{
if(LetterColors.getIndex(lastIndex)==i/4)

View file

@ -189,7 +189,8 @@ gint KeyIn(GtkWidget *Widget, GdkEventKey *Event, gpointer *Data)
}
break;
case GDK_Down :
if (CommandHistoryPos + 1 < CommandHistory.size()) {
if (CommandHistoryPos + 1 < CommandHistory.size())
{
CommandHistoryPos++;
gtk_entry_set_text (GTK_ENTRY(Widget), CommandHistory[CommandHistoryPos].c_str());
}
@ -374,7 +375,8 @@ gint updateInterf (gpointer data)
{
uint32 col = (*it).first;
GtkTextTag *tag = NULL;
if ((col>>24) == 0) {
if ((col>>24) == 0)
{
GdkColor color;
color.red = (col >> 8) & 0xFF00;
color.green = col & 0xFF00;

View file

@ -56,7 +56,8 @@ static void uuencode (const char *s, const char *store, const int length)
unsigned char *us = (unsigned char *)s;
/* Transform the 3x8 bits to 4x6 bits, as required by base64. */
for (i = 0; i < length; i += 3) {
for (i = 0; i < length; i += 3)
{
*p++ = tbl[us[0] >> 2];
*p++ = tbl[((us[0] & 3) << 4) + (us[1] >> 4)];
*p++ = tbl[((us[1] & 0xf) << 2) + (us[2] >> 6)];
@ -64,10 +65,12 @@ static void uuencode (const char *s, const char *store, const int length)
us += 3;
}
/* Pad the result if necessary... */
if (i == length + 1) {
if (i == length + 1)
{
*(p - 1) = tbl[64];
}
else if (i == length + 2) {
else if (i == length + 2)
{
*(p - 1) = *(p - 2) = tbl[64];
}
/* ...and zero-terminate it. */