Changeset 949
- Timestamp:
- 09/26/10 23:06:02 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/camera.h (modified) (1 diff)
-
platform/ixus95_sd1200/sub/100c/lib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/camera.h
r948 r949 2189 2189 // camera name 2190 2190 #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 2191 // TODO this was in the original zebra mess, not clear if needed or just for mem saving ? 2192 #define CAM_ZEBRA_ASPECT_ADJUST 1 2191 2192 // aspect correction 2193 #undef CAM_USES_ASPECT_CORRECTION 2194 #undef CAM_USES_ASPECT_YCORRECTION 2195 #define CAM_USES_ASPECT_CORRECTION 1 //camera uses the modified graphics primitives to map screens an viewports to buffers more sized 2196 #define CAM_USES_ASPECT_YCORRECTION 0 //only uses mappings on x coordinate 2197 2198 #undef ASPECT_XCORRECTION 2199 #define ASPECT_XCORRECTION(x) ( ((x)<<1) ) 2200 2201 // Note color palette affects grids! 2202 #undef ASPECT_GRID_XCORRECTION 2203 #define ASPECT_GRID_XCORRECTION(x) ( (x) ) 2204 2205 #undef ASPECT_GRID_YCORRECTION 2206 #define ASPECT_GRID_YCORRECTION(y) ( (y) ) 2207 2208 #undef ASPECT_VIEWPORT_XCORRECTION 2209 #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) 2210 #undef ASPECT_VIEWPORT_YCORRECTION 2211 #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y) ) 2212 2213 //games mappings 2214 #undef GAMES_SCREEN_WIDTH 2215 #undef GAMES_SCREEN_HEIGHT 2216 #define GAMES_SCREEN_WIDTH 360 2217 #define GAMES_SCREEN_HEIGHT 240 2218 #undef ASPECT_GAMES_XCORRECTION 2219 // 720/360=2 same aspect than grids and viewport but another approach: there is a lot of corrections to do in game's code, and we decide to paint directly on display buffer wirh another resolution 2220 // used by gui.c that configures the draw environment (trhough new draw_gui function) depending on gui_mode: we have then 360x240 for games (but deformed output:circles are not circles) and 320x240 for 2221 // other modes in perfect aspect ratio 4/3: slightly better visualization: file menus more readable, ... 2222 #define ASPECT_GAMES_XCORRECTION(x) ( ((x)<<1) ) 2223 #undef ASPECT_GAMES_YCORRECTION 2224 #define ASPECT_GAMES_YCORRECTION(y) ( (y) ) //none 2225 2226 #define CAM_ZEBRA_ASPECT_ADJUST 1 2227 2193 2228 //---------------------------------------------------------- 2194 2229 -
trunk/platform/ixus95_sd1200/sub/100c/lib.c
r910 r949 85 85 86 86 87 // note real width is 720, report 360 for aspect adjustment 87 88 long vid_get_bitmap_screen_width() 88 89 { 89 return 720;90 return 360; 90 91 } 91 92
Note: See TracChangeset
for help on using the changeset viewer.