Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoamodes.m @ 1969:5d3724f64f2b
Clarified the difference between render drivers and render contexts
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Aug 2006 00:09:04 +0000 |
parents | 70139af5ac27 |
children | 81255f93dfcd |
comparison
equal
deleted
inserted
replaced
1968:9f589a1f74a5 | 1969:5d3724f64f2b |
---|---|
92 number = CFDictionaryGetValue(moderef, kCGDisplayBitsPerPixel); | 92 number = CFDictionaryGetValue(moderef, kCGDisplayBitsPerPixel); |
93 CFNumberGetValue(number, kCFNumberLongType, &bpp); | 93 CFNumberGetValue(number, kCFNumberLongType, &bpp); |
94 number = CFDictionaryGetValue(moderef, kCGDisplayRefreshRate); | 94 number = CFDictionaryGetValue(moderef, kCGDisplayRefreshRate); |
95 CFNumberGetValue(number, kCFNumberLongType, &refreshRate); | 95 CFNumberGetValue(number, kCFNumberLongType, &refreshRate); |
96 | 96 |
97 mode->format = SDL_PixelFormat_Unknown; | 97 mode->format = SDL_PIXELFORMAT_UNKNOWN; |
98 switch (bpp) { | 98 switch (bpp) { |
99 case 8: | 99 case 8: |
100 mode->format = SDL_PixelFormat_Index8; | 100 mode->format = SDL_PIXELFORMAT_INDEX8; |
101 break; | 101 break; |
102 case 16: | 102 case 16: |
103 mode->format = SDL_PixelFormat_RGB555; | 103 mode->format = SDL_PIXELFORMAT_RGB555; |
104 break; | 104 break; |
105 case 32: | 105 case 32: |
106 mode->format = SDL_PixelFormat_RGB888; | 106 mode->format = SDL_PIXELFORMAT_RGB888; |
107 break; | 107 break; |
108 } | 108 } |
109 mode->w = width; | 109 mode->w = width; |
110 mode->h = height; | 110 mode->h = height; |
111 mode->refresh_rate = refreshRate; | 111 mode->refresh_rate = refreshRate; |