Skip to content

Commit

Permalink
Fix code style to match that of surrounding code
Browse files Browse the repository at this point in the history
  • Loading branch information
FireyFly committed Feb 27, 2014
1 parent d2fad06 commit 8caee16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions terminal.cpp
Expand Up @@ -750,8 +750,8 @@ void Terminal::ansiSequence(const QString& seq)
// xterm 256-colour support
if(params.count() > 1 && (params[0] == 38 || params[0] == 48)) {
if(params.count() > 2 && params[1] == 5 &&
params[2] >= 0 && params[2] <= 255) {
if (params[0] == 38)
params[2] >= 0 && params[2] <= 255) {
if(params[0] == 38)
iTermAttribs.currentFgColor = params[2];
else
iTermAttribs.currentBgColor = params[2];
Expand Down
7 changes: 3 additions & 4 deletions textrender.cpp
Expand Up @@ -55,10 +55,9 @@ TextRender::TextRender(QQuickItem *parent) :

//colour cube
for (int r = 0x00; r < 0x100; r += 0x33)
for (int g = 0x00; g < 0x100; g += 0x33)
for (int b = 0x00; b < 0x100; b += 0x33) {
iColorTable.append(QColor(r, g, b));
}
for (int g = 0x00; g < 0x100; g += 0x33)
for (int b = 0x00; b < 0x100; b += 0x33)
iColorTable.append(QColor(r, g, b));

//greyscale ramp
int ramp[] = {
Expand Down

0 comments on commit 8caee16

Please sign in to comment.