فهرست منبع

LibDraw: Some build fixes for strange platforms

Patch from Anonymous.
Andreas Kling 5 سال پیش
والد
کامیت
3ebfa9f044
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      Libraries/LibDraw/GraphicsBitmap.h

+ 3 - 2
Libraries/LibDraw/GraphicsBitmap.h

@@ -47,10 +47,10 @@ public:
         case Format::RGB32:
         case Format::RGB32:
         case Format::RGBA32:
         case Format::RGBA32:
             return 32;
             return 32;
-        case Format::Invalid:
-            return 0;
         default:
         default:
             ASSERT_NOT_REACHED();
             ASSERT_NOT_REACHED();
+        case Format::Invalid:
+            return 0;
         }
         }
     }
     }
 
 
@@ -157,6 +157,7 @@ inline Color GraphicsBitmap::get_pixel(int x, int y) const
         return get_pixel<Format::Indexed8>(x, y);
         return get_pixel<Format::Indexed8>(x, y);
     default:
     default:
         ASSERT_NOT_REACHED();
         ASSERT_NOT_REACHED();
+        return { };
     }
     }
 }
 }