Changed multi-line C comments into another style.

The left side doesn't look unbalanced.
This commit is contained in:
Greg King
2014-06-30 05:10:35 -04:00
parent 132d57f1ad
commit 0390c34e88
502 changed files with 8869 additions and 8884 deletions

View File

@@ -104,9 +104,9 @@ int ValidBitmapSize (unsigned Width, unsigned Height)
Bitmap* SliceBitmap (const Bitmap* O, unsigned OrigX, unsigned OrigY,
unsigned Width, unsigned Height)
/* Create a slice of the given bitmap. The slice starts at position X/Y of
* the original and has the given width and height. Location 0/0 is at the
* upper left corner.
*/
** the original and has the given width and height. Location 0/0 is at the
** upper left corner.
*/
{
Bitmap* B;
unsigned Y;
@@ -140,15 +140,15 @@ Bitmap* SliceBitmap (const Bitmap* O, unsigned OrigX, unsigned OrigY,
Color GetPixelColor (const Bitmap* B, unsigned X, unsigned Y)
/* Get the color for a given pixel. For indexed bitmaps, the palette entry
* is returned.
*/
** is returned.
*/
{
/* Get the pixel at the given coordinates */
Pixel P = GetPixel (B, X, Y);
/* If the bitmap has a palette, return the color from the palette. For
* simplicity, we will only check the palette, not the type.
*/
** simplicity, we will only check the palette, not the type.
*/
if (B->Pal) {
if (P.Index >= B->Pal->Count) {
/* Palette index is invalid */
@@ -166,8 +166,8 @@ Color GetPixelColor (const Bitmap* B, unsigned X, unsigned Y)
Pixel GetPixel (const Bitmap* B, unsigned X, unsigned Y)
/* Return a pixel from the bitmap. The returned value may either be a color
* or a palette index, depending on the type of the bitmap.
*/
** or a palette index, depending on the type of the bitmap.
*/
{
/* Check the coordinates */
PRECONDITION (X < B->Width && Y < B->Height);