Skip to content

Commit 9578974

Browse files
committed
gfxlib: Return proper error code from Screen (98fec3c regression)
(cherry picked from commit 3d027c5)
1 parent 2a42a1f commit 9578974

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Version 1.02.1
1717
- #767: Illegal byref result assignments will now cause a proper error message, not just a warning
1818
- Using the -asm att|intel option for non-x86[_64] targets now triggers an error
1919
- C backend: -masm=... will now only be passed to gcc for x86[_64] targets
20+
- Screen didn't return an error code if it failed
2021

2122

2223
Version 1.02.0

src/gfxlib2/gfx_screen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ FBCALL int fb_GfxScreen
437437

438438
FB_GRAPHICS_UNLOCK( );
439439

440-
return fb_ErrorSetNum( FB_RTERROR_OK );
440+
return res;
441441
}
442442

443443
FBCALL int fb_GfxScreenQB( int mode, int visible, int active )

0 commit comments

Comments
 (0)