Skip to content

Backgrounds - #9

Open
LordKraken wants to merge 8 commits into
bspruck:masterfrom
LordKraken:backgrounds
Open

Backgrounds#9
LordKraken wants to merge 8 commits into
bspruck:masterfrom
LordKraken:backgrounds

Conversation

@LordKraken

Copy link
Copy Markdown

New backgrounds.

As the title says, all warning should be fixed for all 4 differents configurations.
Resolution is not better since it would require heavy changes, but the background textures have been remade from HD pictures of the consoles.
@LordKraken

Copy link
Copy Markdown
Author

Made a small mistake when creating the background branch, so it contains also all warning fixes from master.

FILE* fp;
errno_t err;
if ((err = fopen_s(&fp, filename, "rb")) != 0) {
if ((err = fopen_s(&fp, filename, "rb")) == 0) {

@42Bastian 42Bastian Apr 15, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO the variable err and the assignment in the if () can be omitted as it is not used.
Also true for most if not all fopen_s.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I actually fixed it in my fork, I made this mistake a couple of time in this PR actually.
fopen return 0/NULL -> didnt work
fopen_s return 0 -> All fine
Pretty confusing ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants