Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme for building on macOS #110

Closed
wants to merge 1 commit into from
Closed

Update readme for building on macOS #110

wants to merge 1 commit into from

Conversation

SeekingMeaning
Copy link

@SeekingMeaning SeekingMeaning commented Jun 27, 2020

Homebrew provides glew and libdeflate

(Maybe closes #89)

Homebrew provides glew and libdeflate
@SeekingMeaning
Copy link
Author

Steps needed to compile on macOS:

  • Add #include <stddef.h> to utils.h (Make it so CMake now grabs the latest dr_wav version instead of 0.8.1 #105)

  • Currently, only part of the server list is rendered:

    A workaround for this is commenting out these lines in hud.c:

     glEnable(GL_SCISSOR_TEST);
     glScissor((settings.window_width - 600 * scaley) / 2.0F, 50 * scaley, 600 * scaley, (430 - 50) * scaley);
    

    and this line:

     glDisable(GL_SCISSOR_TEST);
    

    This workaround results in this behavior when scrolling:

@xtreme8000
Copy link
Owner

Currently, only part of the server list is rendered

This happens because the actual window size is different from what the game thinks it is, try adjusting your window dimensions in settings.

@SeekingMeaning
Copy link
Author

Strangely, it seems multiplying each parameter of glScissor by 2 fixes the problem:

   float scissor_x = (settings.window_width - 600 * scaley) / 2.0F;
   float scissor_y = 50 * scaley;
   float scissor_w = 600 * scaley;
   float scissor_h = (430 - 50) * scaley;

#if __APPLE__
   scissor_x *= 2;
   scissor_y *= 2;
   scissor_w *= 2;
   scissor_h *= 2;
#endif
   glScissor(scissor_x, scissor_y, scissor_w, scissor_h);

@SeekingMeaning
Copy link
Author

Bug with picking up intel:

Before: Screen Shot 2020-06-29 at 10 43 02 AM
After: Screen Shot 2020-06-29 at 10 43 12 AM

@xtreme8000
Copy link
Owner

possibly related to #145 and #146

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