Subversion Repositories eduke32

Rev

Rev 4936 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4936 Rev 4997
Line 17... Line 17...
17
You should have received a copy of the GNU General Public License
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
*/
20
*/
21
//-------------------------------------------------------------------------
21
//-------------------------------------------------------------------------
22
-
 
23
#include <math.h>
-
 
24
#include "compat.h"
22
#include "compat.h"
-
 
23
#include <math.h>
25
#include "duke3d.h"
24
#include "duke3d.h"
26
#include "build.h"
25
#include "build.h"
27
#include "namesdyn.h"
26
#include "namesdyn.h"
28
#include "osdfuncs.h"
27
#include "osdfuncs.h"
29
#include "premap.h"
28
#include "premap.h"
Line 125... Line 124...
125
124
126
void GAME_onshowosd(int32_t shown)
125
void GAME_onshowosd(int32_t shown)
127
{
126
{
128
    G_UpdateScreenArea();
127
    G_UpdateScreenArea();
129
128
130
    AppGrabMouse((!shown) | 2);
129
    AppGrabMouse((!shown) + 2);
131
130
132
    osdshown = shown;
131
    osdshown = shown;
133
132
134
    // XXX: it's weird to fake a keypress like this.
133
    // XXX: it's weird to fake a keypress like this.
135
//    if (numplayers == 1 && ((shown && !ud.pause_on) || (!shown && ud.pause_on)))
134
//    if (numplayers == 1 && ((shown && !ud.pause_on) || (!shown && ud.pause_on)))
Line 142... Line 141...
142
141
143
# ifdef USE_OPENGL
142
# ifdef USE_OPENGL
144
    if (getrendermode() >= REND_POLYMOST && qsetmode==200)
143
    if (getrendermode() >= REND_POLYMOST && qsetmode==200)
145
    {
144
    {
146
        const int32_t i8n8 = OSD_SCALE(8*numrows);
145
        const int32_t i8n8 = OSD_SCALE(8*numrows);
147
        bglPushAttrib(GL_FOG_BIT);
146
//        bglPushAttrib(GL_FOG_BIT);
148
        bglDisable(GL_FOG);
147
        bglDisable(GL_FOG);
149
148
150
        setpolymost2dview();
149
        setpolymost2dview();
151
        bglColor4f(0.f, 0.f, 0.f, 0.67f);
150
        bglColor4f(0.f, 0.f, 0.f, 0.67f);
152
        bglEnable(GL_BLEND);
151
        bglEnable(GL_BLEND);
153
        bglRecti(0, 0, xdim, i8n8+8);
152
        bglRecti(0, 0, xdim, i8n8+8);
154
        bglColor3f(0.f, 0.f, 0.f);
153
        bglColor4f(0.f, 0.f, 0.f, 1.f);
155
        bglRecti(0, i8n8+4, xdim, i8n8+8);
154
        bglRecti(0, i8n8+4, xdim, i8n8+8);
156
-
 
-
 
155
        if (!nofog)
-
 
156
            bglEnable(GL_FOG);
157
        bglPopAttrib();
157
//        bglPopAttrib();
158
158
159
        return;
159
        return;
160
    }
160
    }
161
# endif
161
# endif
162
162