more software renderer code removal

This commit is contained in:
Edu García
2024-05-09 12:11:49 +01:00
parent 7d38dde25d
commit fbd6350917
11 changed files with 3 additions and 328 deletions

View File

@@ -100,16 +100,6 @@ static int m_UITextFlags = 0;
// DRAWING PRIMATIVE FUNCTIONS
void ui_StartDraw(int left, int top, int right, int bottom) {
// for software renderers perform frame buffer lock.
if (Renderer_type == RENDERER_SOFTWARE_16BIT) {
int w, h, color_depth, pitch;
ubyte *data;
ddvid_GetVideoProperties(&w, &h, &color_depth);
ddvid_LockFrameBuffer(&data, &pitch);
rend_SetSoftwareParameters(ddvid_GetAspectRatio(), w, h, pitch, data);
}
m_UIDrawLeft = left;
m_UIDrawTop = top;
m_UIDrawRight = right;
@@ -123,11 +113,6 @@ void ui_StartDraw(int left, int top, int right, int bottom) {
void ui_EndDraw() {
grtext_Flush();
rend_EndFrame();
// for software renderers perform unlock on frame buffer.
if (Renderer_type == RENDERER_SOFTWARE_16BIT) {
ddvid_UnlockFrameBuffer();
}
}
// sets text clipping within the startdraw region