mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 21:11:39 +00:00
Changed: Formatting
This commit is contained in:
parent
dd116afff3
commit
d2a9cb90d0
3 changed files with 12 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue