Subversion Repositories eduke32

Rev

Rev 8425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8425 Rev 8484
Line 1921... Line 1921...
1921
    break;  // switch (col) / case 0
1921
    break;  // switch (col) / case 0
1922
1922
1923
    }  // switch (col)
1923
    }  // switch (col)
1924
}
1924
}
1925
1925
-
 
1926
void m32_showmouse()
-
 
1927
{
-
 
1928
    int32_t i, col;
-
 
1929
-
 
1930
    int32_t mousecol = M32_THROB;
-
 
1931
-
 
1932
    if (whitecol > editorcolors[0])
-
 
1933
        col = whitecol - mousecol;
-
 
1934
    else col = whitecol + mousecol;
-
 
1935
-
 
1936
#ifdef USE_OPENGL
-
 
1937
    if (videoGetRenderMode() >= REND_POLYMOST)
-
 
1938
    {
-
 
1939
        renderDisableFog();
-
 
1940
        polymost_useColorOnly(true);
-
 
1941
    }
-
 
1942
#endif
-
 
1943
-
 
1944
    int const lores = !!(xdim <= 640);
-
 
1945
-
 
1946
    for (i = (3 - lores); i <= (7 >> lores); i++)
-
 
1947
    {
-
 
1948
        plotpixel(searchx+i,searchy,col);
-
 
1949
        plotpixel(searchx-i,searchy,col);
-
 
1950
        plotpixel(searchx,searchy-i,col);
-
 
1951
        plotpixel(searchx,searchy+i,col);
-
 
1952
    }
-
 
1953
-
 
1954
    for (i=1; i<=(2 >> lores); i++)
-
 
1955
    {
-
 
1956
        plotpixel(searchx+i,searchy,whitecol);
-
 
1957
        plotpixel(searchx-i,searchy,whitecol);
-
 
1958
        plotpixel(searchx,searchy-i,whitecol);
-
 
1959
        plotpixel(searchx,searchy+i,whitecol);
-
 
1960
    }
-
 
1961
-
 
1962
    i = (8 >> lores);
-
 
1963
-
 
1964
    plotpixel(searchx+i,searchy,editorcolors[0]);
-
 
1965
    plotpixel(searchx-i,searchy,editorcolors[0]);
-
 
1966
    plotpixel(searchx,searchy-i,editorcolors[0]);
-
 
1967
    plotpixel(searchx,searchy+i,editorcolors[0]);
-
 
1968
-
 
1969
    if (!lores)
-
 
1970
    {
-
 
1971
        for (i=1; i<=4; i++)
-
 
1972
        {
-
 
1973
            plotpixel(searchx+i,searchy,whitecol);
-
 
1974
            plotpixel(searchx-i,searchy,whitecol);
-
 
1975
            plotpixel(searchx,searchy-i,whitecol);
-
 
1976
            plotpixel(searchx,searchy+i,whitecol);
-
 
1977
        }
-
 
1978
    }
-
 
1979
-
 
1980
#ifdef USE_OPENGL
-
 
1981
    if (videoGetRenderMode() >= REND_POLYMOST)
-
 
1982
    {
-
 
1983
        renderEnableFog();
-
 
1984
        polymost_useColorOnly(false);
-
 
1985
    }
-
 
1986
#endif
-
 
1987
}
-
 
1988
1926
#ifdef LUNATIC
1989
#ifdef LUNATIC
1927
typedef const char *(*luamenufunc_t)(void);
1990
typedef const char *(*luamenufunc_t)(void);
1928
1991
1929
#ifdef __cplusplus
1992
#ifdef __cplusplus
1930
extern "C" {
1993
extern "C" {