diff options
| author | Leandro Gabriel <[email protected]> | 2019-08-03 06:07:41 -0300 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-08-03 11:07:41 +0200 |
| commit | 89c16baf182aed201b75b99a253c0b074ffffeed (patch) | |
| tree | 90edca66ea7b4c9c83aab26daa2496b770206ab5 /examples/others | |
| parent | 68ffbc06c74b717946d1bcb3a7e433d5fb859c85 (diff) | |
| download | raylib-89c16baf182aed201b75b99a253c0b074ffffeed.tar.gz raylib-89c16baf182aed201b75b99a253c0b074ffffeed.zip | |
Replace tabs with spaces and update year of copyright notices (#927)
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
Diffstat (limited to 'examples/others')
| -rw-r--r-- | examples/others/raudio_standalone.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/examples/others/raudio_standalone.c b/examples/others/raudio_standalone.c index 63d5b8d2..9122c321 100644 --- a/examples/others/raudio_standalone.c +++ b/examples/others/raudio_standalone.c @@ -58,29 +58,29 @@ // Check if a key has been pressed static int kbhit(void) { - struct termios oldt, newt; - int ch; - int oldf; + struct termios oldt, newt; + int ch; + int oldf; - tcgetattr(STDIN_FILENO, &oldt); - newt = oldt; - newt.c_lflag &= ~(ICANON | ECHO); - tcsetattr(STDIN_FILENO, TCSANOW, &newt); - oldf = fcntl(STDIN_FILENO, F_GETFL, 0); - fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK); + tcgetattr(STDIN_FILENO, &oldt); + newt = oldt; + newt.c_lflag &= ~(ICANON | ECHO); + tcsetattr(STDIN_FILENO, TCSANOW, &newt); + oldf = fcntl(STDIN_FILENO, F_GETFL, 0); + fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK); - ch = getchar(); + ch = getchar(); - tcsetattr(STDIN_FILENO, TCSANOW, &oldt); - fcntl(STDIN_FILENO, F_SETFL, oldf); + tcsetattr(STDIN_FILENO, TCSANOW, &oldt); + fcntl(STDIN_FILENO, F_SETFL, oldf); - if (ch != EOF) - { - ungetc(ch, stdin); - return 1; - } + if (ch != EOF) + { + ungetc(ch, stdin); + return 1; + } - return 0; + return 0; } // Get pressed character |
