mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 11:57:25 +00:00
Code formatting guidelines
svn-id: r32207
This commit is contained in:
parent
0ea6707dc4
commit
0707968a37
@ -210,7 +210,6 @@ drawLine(int x1, int y1, int x2, int y2) {
|
||||
|
||||
if (dy == 0) { // horizontal lines
|
||||
// these can be filled really fast with a single memset.
|
||||
// TODO: Platform specific ASM in set_to, would make this thing fly
|
||||
colorFill(ptr, ptr + dx + 1, (PixelType)_fgColor);
|
||||
|
||||
} else if (dx == 0) { // vertical lines
|
||||
@ -605,7 +604,6 @@ drawRoundedSquareShadow(int x1, int y1, int r, int w, int h, int blur) {
|
||||
int f, ddF_x, ddF_y;
|
||||
int x, y, px, py;
|
||||
int pitch = Base::surfacePitch();
|
||||
int sw = 0, sp = 0, hp = h * pitch;
|
||||
int alpha = 102;
|
||||
|
||||
x1 += blur;
|
||||
|
@ -499,10 +499,10 @@ protected:
|
||||
virtual inline void colorFill(PixelType *first, PixelType *last, PixelType color) {
|
||||
register PixelType *ptr = first;
|
||||
register int count = (last - first);
|
||||
{
|
||||
register int n = (count + 7) / 8;
|
||||
register int n = (count + 7) >> 3;
|
||||
switch (count % 8) {
|
||||
case 0: do { *ptr++ = color;
|
||||
case 0: do {
|
||||
*ptr++ = color;
|
||||
case 7: *ptr++ = color;
|
||||
case 6: *ptr++ = color;
|
||||
case 5: *ptr++ = color;
|
||||
@ -513,7 +513,6 @@ protected:
|
||||
} while (--n > 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PixelType _fgColor; /** Foreground color currently being used to draw on the renderer */
|
||||
PixelType _bgColor; /** Background color currently being used to draw on the renderer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user