提交 8aa49cc9 编写于 作者: J jp9000

Remove unused graphics subsystem functions

These functions were mostly related to being able to set true fullscreen
mode -- however, this has no place for our purposes, and these functions
were just sitting empty and unused, so they should be removed.

Besides, fullscreen mode only applies to the windows operating system.
上级 f4e7a893
......@@ -1328,35 +1328,6 @@ void device_stencilop(device_t device, enum gs_stencil_side side,
fail, zfail, zpass);
}
void device_enable_fullscreen(device_t device, bool enable)
{
/* TODO */
}
int device_fullscreen_enabled(device_t device)
{
/* TODO */
return 0;
}
void device_setdisplaymode(device_t device,
const struct gs_display_mode *mode)
{
/* TODO */
}
void device_getdisplaymode(device_t device,
struct gs_display_mode *mode)
{
/* TODO */
}
void device_setcolorramp(device_t device, float gamma, float brightness,
float contrast)
{
/* TODO */
}
void device_setviewport(device_t device, int x, int y, int width,
int height)
{
......
......@@ -1096,46 +1096,6 @@ void device_stencilop(device_t device, enum gs_stencil_side side,
UNUSED_PARAMETER(device);
}
void device_enable_fullscreen(device_t device, bool enable)
{
/* TODO */
UNUSED_PARAMETER(device);
UNUSED_PARAMETER(enable);
}
int device_fullscreen_enabled(device_t device)
{
/* TODO */
UNUSED_PARAMETER(device);
return false;
}
void device_setdisplaymode(device_t device,
const struct gs_display_mode *mode)
{
/* TODO */
UNUSED_PARAMETER(device);
UNUSED_PARAMETER(mode);
}
void device_getdisplaymode(device_t device,
struct gs_display_mode *mode)
{
/* TODO */
UNUSED_PARAMETER(device);
UNUSED_PARAMETER(mode);
}
void device_setcolorramp(device_t device, float gamma, float brightness,
float contrast)
{
/* TODO */
UNUSED_PARAMETER(device);
UNUSED_PARAMETER(gamma);
UNUSED_PARAMETER(brightness);
UNUSED_PARAMETER(contrast);
}
static inline uint32_t get_target_height(struct gs_device *device)
{
if (!device->cur_render_target)
......
......@@ -94,11 +94,6 @@ bool load_graphics_imports(struct gs_exports *exports, void *module,
GRAPHICS_IMPORT(device_depthfunction);
GRAPHICS_IMPORT(device_stencilfunction);
GRAPHICS_IMPORT(device_stencilop);
GRAPHICS_IMPORT(device_enable_fullscreen);
GRAPHICS_IMPORT(device_fullscreen_enabled);
GRAPHICS_IMPORT(device_setdisplaymode);
GRAPHICS_IMPORT(device_getdisplaymode);
GRAPHICS_IMPORT(device_setcolorramp);
GRAPHICS_IMPORT(device_setviewport);
GRAPHICS_IMPORT(device_getviewport);
GRAPHICS_IMPORT(device_setscissorrect);
......
......@@ -116,14 +116,6 @@ struct gs_exports {
void (*device_stencilop)(device_t device, enum gs_stencil_side side,
enum gs_stencil_op fail, enum gs_stencil_op zfail,
enum gs_stencil_op zpass);
void (*device_enable_fullscreen)(device_t device, bool enable);
int (*device_fullscreen_enabled)(device_t device);
void (*device_setdisplaymode)(device_t device,
const struct gs_display_mode *mode);
void (*device_getdisplaymode)(device_t device,
struct gs_display_mode *mode);
void (*device_setcolorramp)(device_t device, float gamma,
float brightness, float contrast);
void (*device_setviewport)(device_t device, int x, int y, int width,
int height);
void (*device_getviewport)(device_t device, struct gs_rect *rect);
......
......@@ -1417,47 +1417,6 @@ void gs_stencilop(enum gs_stencil_side side, enum gs_stencil_op fail,
zpass);
}
void gs_enable_fullscreen(bool enable)
{
graphics_t graphics = thread_graphics;
if (!graphics) return;
graphics->exports.device_enable_fullscreen(graphics->device, enable);
}
int gs_fullscreen_enabled(void)
{
graphics_t graphics = thread_graphics;
if (!graphics) return 0;
return graphics->exports.device_fullscreen_enabled(graphics->device);
}
void gs_setdisplaymode(const struct gs_display_mode *mode)
{
graphics_t graphics = thread_graphics;
if (!graphics) return;
graphics->exports.device_setdisplaymode(graphics->device, mode);
}
void gs_getdisplaymode(struct gs_display_mode *mode)
{
graphics_t graphics = thread_graphics;
if (!graphics) return;
graphics->exports.device_getdisplaymode(graphics->device, mode);
}
void gs_setcolorramp(float gamma, float brightness, float contrast)
{
graphics_t graphics = thread_graphics;
if (!graphics) return;
graphics->exports.device_setcolorramp(graphics->device, gamma,
brightness, contrast);
}
void gs_setviewport(int x, int y, int width, int height)
{
graphics_t graphics = thread_graphics;
......
......@@ -617,14 +617,6 @@ EXPORT void gs_stencilfunction(enum gs_stencil_side side,
EXPORT void gs_stencilop(enum gs_stencil_side side, enum gs_stencil_op fail,
enum gs_stencil_op zfail, enum gs_stencil_op zpass);
EXPORT void gs_setclip(struct plane *p);
EXPORT void gs_enable_fullscreen(bool enable);
EXPORT int gs_fullscreen_enabled(void);
EXPORT void gs_setdisplaymode(const struct gs_display_mode *mode);
EXPORT void gs_getdisplaymode(struct gs_display_mode *mode);
EXPORT void gs_setcolorramp(float gamma, float brightness, float contrast);
EXPORT void gs_setviewport(int x, int y, int width, int height);
EXPORT void gs_getviewport(struct gs_rect *rect);
EXPORT void gs_setscissorrect(struct gs_rect *rect);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册