to allow 8bit visuals common on low end workstations.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#if defined(unix) || defined(__unix__)
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
*aptr++ = 1;
} else {
*aptr++ = GLX_RGBA;
*aptr++ = 1;
} else {
*aptr++ = GLX_RGBA;
- *aptr++ = GLX_RED_SIZE; *aptr++ = 4;
- *aptr++ = GLX_GREEN_SIZE; *aptr++ = 4;
- *aptr++ = GLX_BLUE_SIZE; *aptr++ = 4;
+ *aptr++ = GLX_RED_SIZE; *aptr++ = 1;
+ *aptr++ = GLX_GREEN_SIZE; *aptr++ = 1;
+ *aptr++ = GLX_BLUE_SIZE; *aptr++ = 1;
}
if(mode & GLUT_ALPHA) {
*aptr++ = GLX_ALPHA_SIZE;
}
if(mode & GLUT_ALPHA) {
*aptr++ = GLX_ALPHA_SIZE;
}
#endif /* BUILD_WIN32 */
}
#endif /* BUILD_WIN32 */
-#if defined(__unix__) || defined(__APPLE__)
+#if defined(unix) || defined(__unix__) || defined(__APPLE__)
#include <sys/time.h>
#ifdef MINIGLUT_USE_LIBC
#include <sys/time.h>
#ifdef MINIGLUT_USE_LIBC