mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-19 11:00:03 -04:00
more software renderer code removal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user