浏览代码

Update raygui.h

Ray 2 年之前
父节点
当前提交
d981abebd8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -1612,7 +1612,7 @@ Rectangle GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content,
     //--------------------------------------------------------------------
     if (text != NULL) GuiStatusBar(statusBar, text);  // Draw panel header as status bar
 
-    GuiDrawRectangle(bounds, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)));        // Draw background
+    GuiDrawRectangle(bounds, 0, BLANK, Fade(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)), guiAlpha));        // Draw background
 
     // Save size of the scrollbar slider
     const int slider = GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE);