]> git.sur5r.net Git - cc65/blobdiff - src/sp65/geosbitmap.c
Merge pull request #7 from cvemu/master
[cc65] / src / sp65 / geosbitmap.c
index 05984cbdf5513c47b563df0242eb04ed6e887853..201d0aca173bec9b1a39eeb9e509e440d1cbd0b5 100644 (file)
@@ -76,15 +76,15 @@ struct RLE {
 
 static void StoreByte (struct RLE* RLE)
 /* Store a unique byte or a run of repeated bytes. If count is zero, the
- * function will flush the internal buffers, so that all data is in RLE->D.
- */
+** function will flush the internal buffers, so that all data is in RLE->D.
+*/
 {
 
 
     if (RLE->Count == 1 || RLE->Count == 2) {
         /* A run of two identical bytes is treated as two unique bytes, since
-         * this will usually merge with the following run.
-         */
+        ** this will usually merge with the following run.
+        */
         SB_AppendChar (&RLE->UniqueData, RLE->LastVal);
         if (RLE->Count == 2) {
             SB_AppendChar (&RLE->UniqueData, RLE->LastVal);
@@ -96,8 +96,8 @@ static void StoreByte (struct RLE* RLE)
     } else {
 
         /* Run of repeated bytes. First flush the temp buffer for unique
-         * bytes.
-         */
+        ** bytes.
+        */
         const char* Buf = SB_GetConstBuf (&RLE->UniqueData);
         unsigned Count  = SB_GetLen (&RLE->UniqueData);
         while (Count) {
@@ -142,9 +142,9 @@ static void StoreByte (struct RLE* RLE)
 
 StrBuf* GenGeosBitmap (const Bitmap* B, const Collection* A attribute ((unused)))
 /* Generate binary output in GEOS compacted bitmap format for the bitmap B.
- * The output is stored in a string buffer (which is actually a dynamic char
- * array) and returned.
- */
+** The output is stored in a string buffer (which is actually a dynamic char
+** array) and returned.
+*/
 {
     unsigned        LineWidth;
     unsigned char*  Buf;
@@ -192,8 +192,8 @@ StrBuf* GenGeosBitmap (const Bitmap* B, const Collection* A attribute ((unused))
     SB_Realloc (D, 64);
 
     /* Compact the image. We're currently using only REPEAT and UNIQUE opcodes.
-     * BIGCOUNT is rather difficult to apply.
-     */
+    ** BIGCOUNT is rather difficult to apply.
+    */
     RLE.Buf        = Buf;
     RLE.Remaining  = LineWidth * GetBitmapHeight (B) - 1;
     RLE.LastVal    = *RLE.Buf++;