Skip to content

Commit

Permalink
Support styles loading
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Jun 25, 2019
1 parent 11f2110 commit 22e7fde
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/riconpacker.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ int main(int argc, char *argv[])
{
int dropsCount = 0;
char **droppedFiles = GetDroppedFiles(&dropsCount);


#if defined(VERSION_ONE)
if ((dropsCount == 1) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
#endif
for (int i = 0; i < dropsCount; i++)
{
if (IsFileExtension(droppedFiles[i], ".ico") ||
Expand Down Expand Up @@ -388,7 +391,7 @@ int main(int argc, char *argv[])
//----------------------------------------------------------------------------------
BeginDrawing();

ClearBackground(RAYWHITE);
ClearBackground(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)));

if (lockBackground) GuiLock();

Expand Down

0 comments on commit 22e7fde

Please sign in to comment.