Sets the resolution that D3D uses
| 2975 | |
| 2976 | // Sets the resolution that D3D uses |
| 2977 | void d3d_SetResolution(int width, int height) { |
| 2978 | D3D_preferred_state.width = width; |
| 2979 | D3D_preferred_state.height = height; |
| 2980 | |
| 2981 | if (D3D_state.initted) { |
| 2982 | if (width != D3D_state.screen_width || height != D3D_state.screen_height) { |
| 2983 | d3d_Close(); |
| 2984 | d3d_Init(ParentApplication, &D3D_preferred_state); |
| 2985 | } |
| 2986 | } |
| 2987 | } |
| 2988 | |
| 2989 | // Sets the gamma correction value |
| 2990 | void d3d_SetGammaValue(float val) { |