Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.c @ 815:6176f9a0d61a
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 13 Feb 2004 06:42:17 +0000 |
parents | dba98fb391e7 |
children | 58b074c1bc59 |
comparison
equal
deleted
inserted
replaced
814:5a417d2a8603 | 815:6176f9a0d61a |
---|---|
667 enumlists[bpp]->r.w == (Uint16)desc->dwWidth && | 667 enumlists[bpp]->r.w == (Uint16)desc->dwWidth && |
668 enumlists[bpp]->r.h == (Uint16)desc->dwHeight ) { | 668 enumlists[bpp]->r.h == (Uint16)desc->dwHeight ) { |
669 if ( refreshRate > enumlists[bpp]->refreshRate && | 669 if ( refreshRate > enumlists[bpp]->refreshRate && |
670 refreshRate <= 85 /* safe value? */ ) { | 670 refreshRate <= 85 /* safe value? */ ) { |
671 enumlists[bpp]->refreshRate = refreshRate; | 671 enumlists[bpp]->refreshRate = refreshRate; |
672 printf("New refresh rate for %d bpp: %dx%d at %d Hz\n", (bpp+1)*8, (int)desc->dwWidth, (int)desc->dwHeight, refreshRate); | 672 #ifdef DDRAW_DEBUG |
673 fprintf(stderr, "New refresh rate for %d bpp: %dx%d at %d Hz\n", (bpp+1)*8, (int)desc->dwWidth, (int)desc->dwHeight, refreshRate); | |
674 #endif | |
673 } | 675 } |
674 break; | 676 break; |
675 } | 677 } |
676 ++SDL_nummodes[bpp]; | 678 ++SDL_nummodes[bpp]; |
677 enumrect = (struct DX5EnumRect*)malloc(sizeof(struct DX5EnumRect)); | 679 enumrect = (struct DX5EnumRect*)malloc(sizeof(struct DX5EnumRect)); |
684 enumrect->r.y = 0; | 686 enumrect->r.y = 0; |
685 enumrect->r.w = (Uint16)desc->dwWidth; | 687 enumrect->r.w = (Uint16)desc->dwWidth; |
686 enumrect->r.h = (Uint16)desc->dwHeight; | 688 enumrect->r.h = (Uint16)desc->dwHeight; |
687 enumrect->next = enumlists[bpp]; | 689 enumrect->next = enumlists[bpp]; |
688 enumlists[bpp] = enumrect; | 690 enumlists[bpp] = enumrect; |
689 printf("New mode for %d bpp: %dx%d at %d Hz\n", (bpp+1)*8, (int)desc->dwWidth, (int)desc->dwHeight, refreshRate); | 691 #ifdef DDRAW_DEBUG |
692 fprintf(stderr, "New mode for %d bpp: %dx%d at %d Hz\n", (bpp+1)*8, (int)desc->dwWidth, (int)desc->dwHeight, refreshRate); | |
693 #endif | |
690 break; | 694 break; |
691 } | 695 } |
692 | 696 |
693 return(DDENUMRET_OK); | 697 return(DDENUMRET_OK); |
694 } | 698 } |