2009-07-16 00:50:27 +00:00
|
|
|
/**
|
2009-07-16 02:04:31 +00:00
|
|
|
* $Id$
|
2009-07-16 00:50:27 +00:00
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-07-16 00:50:27 +00:00
|
|
|
*
|
|
|
|
* Contributor(s): Campbell Barton
|
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/stat.h>
|
2009-07-19 00:49:44 +00:00
|
|
|
#include <limits.h>
|
2009-07-16 00:50:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "BLF_api.h"
|
|
|
|
|
|
|
|
#include "BLI_blenlib.h"
|
|
|
|
|
|
|
|
#include "DNA_space_types.h"
|
|
|
|
#include "DNA_screen_types.h"
|
|
|
|
|
|
|
|
// #include "BKE_suggestions.h"
|
|
|
|
#include "BKE_report.h"
|
|
|
|
#include "BKE_utildefines.h"
|
|
|
|
|
2010-10-02 22:31:48 +00:00
|
|
|
#include "MEM_guardedalloc.h"
|
|
|
|
|
2009-07-16 00:50:27 +00:00
|
|
|
#include "BIF_gl.h"
|
|
|
|
#include "BIF_glutil.h"
|
|
|
|
|
|
|
|
#include "ED_datafiles.h"
|
2009-07-19 00:49:44 +00:00
|
|
|
#include "ED_types.h"
|
|
|
|
|
2009-07-16 00:50:27 +00:00
|
|
|
#include "UI_resources.h"
|
|
|
|
|
2009-07-28 08:50:11 +00:00
|
|
|
#include "console_intern.h"
|
2009-07-16 00:50:27 +00:00
|
|
|
|
BugFix:
[#20854] PROPERTIES STAMP: Rendering stamp flickers in output renders
Blenfont was not thread safe, that is why one thread can change
the font properties (size, dpi, color, etc) at the same time
that the stamp draw on the image, and then the problem.
To make blenfont thread safe I have to change two important things:
1) Every BLF_* function take one argument, the font id.
2) We have two new function to make font "thread safe":
BLF_load_unique
BLF_load_mem_unique
This two function are for case like stamp, that need and own font
that don't share the glyph cache, so can draw without problem
in a different thread.
Why the BLF_*_unique function ?
Because blenfont keep only one copy of a font and keep a list of
"glyph cache". Every glyph cache have size and dpi, so if two
different thread access the same font at the same time, they can
change value and finish with something like the stamp problem.
Why don't remove the glyph cache ?
Because if we do that, we finish with a font object for every size
and dpi, and the stamp is really a special case that happen in
the rendering process, so I really thing is better keep the
glyph cache and make this two new function to handle this
special case.
(When I say "font object" I mean have the same freetype font multiple
times just to have differents size and dpi)
As Matt point we still can have one case that two thread access
the BLF_*_unique function at the same time, but I am looking to
fix this with some class of thread lock.
For now I test and work fine, so if some one found problem, please
let me know.
Campbell I have to change the python api (python/generic/blf_api.c)
to the new syntax, so maybe you can take a look at this.
2010-04-22 10:56:45 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
#include "../space_info/textview.h"
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static void console_line_color(unsigned char fg[3], int type)
|
2009-07-16 00:50:27 +00:00
|
|
|
{
|
2009-07-16 07:11:46 +00:00
|
|
|
switch(type) {
|
2009-07-16 00:50:27 +00:00
|
|
|
case CONSOLE_LINE_OUTPUT:
|
2010-01-15 22:40:33 +00:00
|
|
|
UI_GetThemeColor3ubv(TH_CONSOLE_OUTPUT, (char *)fg);
|
2009-07-16 00:50:27 +00:00
|
|
|
break;
|
|
|
|
case CONSOLE_LINE_INPUT:
|
2010-01-15 22:40:33 +00:00
|
|
|
UI_GetThemeColor3ubv(TH_CONSOLE_INPUT, (char *)fg);
|
2009-07-16 00:50:27 +00:00
|
|
|
break;
|
|
|
|
case CONSOLE_LINE_INFO:
|
2010-01-15 22:40:33 +00:00
|
|
|
UI_GetThemeColor3ubv(TH_CONSOLE_INFO, (char *)fg);
|
2009-07-16 00:50:27 +00:00
|
|
|
break;
|
|
|
|
case CONSOLE_LINE_ERROR:
|
2010-01-15 22:40:33 +00:00
|
|
|
UI_GetThemeColor3ubv(TH_CONSOLE_ERROR, (char *)fg);
|
2009-07-16 00:50:27 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-07-19 00:49:44 +00:00
|
|
|
static void console_report_color(unsigned char *fg, unsigned char *bg, Report *report, int bool)
|
2009-07-16 00:50:27 +00:00
|
|
|
{
|
2009-07-16 07:11:46 +00:00
|
|
|
/*
|
|
|
|
if (type & RPT_ERROR_ALL) { fg[0]=220; fg[1]=0; fg[2]=0; }
|
|
|
|
else if (type & RPT_WARNING_ALL) { fg[0]=220; fg[1]=96; fg[2]=96; }
|
|
|
|
else if (type & RPT_OPERATOR_ALL) { fg[0]=96; fg[1]=128; fg[2]=255; }
|
|
|
|
else if (type & RPT_INFO_ALL) { fg[0]=0; fg[1]=170; fg[2]=0; }
|
|
|
|
else if (type & RPT_DEBUG_ALL) { fg[0]=196; fg[1]=196; fg[2]=196; }
|
|
|
|
else { fg[0]=196; fg[1]=196; fg[2]=196; }
|
|
|
|
*/
|
2009-07-19 00:49:44 +00:00
|
|
|
if(report->flag & SELECT) {
|
|
|
|
fg[0]=255; fg[1]=255; fg[2]=255;
|
|
|
|
if(bool) {
|
|
|
|
bg[0]=96; bg[1]=128; bg[2]=255;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
bg[0]=90; bg[1]=122; bg[2]=249;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
fg[0]=0; fg[1]=0; fg[2]=0;
|
|
|
|
|
|
|
|
if(bool) {
|
|
|
|
bg[0]=120; bg[1]=120; bg[2]=120;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
bg[0]=114; bg[1]=114; bg[2]=114;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2009-12-27 20:22:06 +00:00
|
|
|
}
|
2009-07-19 00:49:44 +00:00
|
|
|
|
2009-12-27 20:22:06 +00:00
|
|
|
typedef struct ConsoleDrawContext {
|
|
|
|
int cwidth;
|
|
|
|
int lheight;
|
|
|
|
int console_width;
|
|
|
|
int winx;
|
|
|
|
int ymin, ymax;
|
|
|
|
int *xy; // [2]
|
|
|
|
int *sel; // [2]
|
2010-09-27 14:01:16 +00:00
|
|
|
int *pos_pick; // bottom of view == 0, top of file == combine chars, end of line is lower then start.
|
2009-12-27 20:22:06 +00:00
|
|
|
int *mval; // [2]
|
|
|
|
int draw;
|
|
|
|
} ConsoleDrawContext;
|
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy)
|
2009-12-27 20:22:06 +00:00
|
|
|
{
|
2010-11-11 05:45:55 +00:00
|
|
|
/* fake the edit line being in the scroll buffer */
|
|
|
|
ConsoleLine *cl= sc->history.last;
|
|
|
|
cl_dummy->type= CONSOLE_LINE_INPUT;
|
|
|
|
cl_dummy->len= cl_dummy->len_alloc= strlen(sc->prompt) + cl->len;
|
|
|
|
cl_dummy->len_alloc= cl_dummy->len + 1;
|
|
|
|
cl_dummy->line= MEM_mallocN(cl_dummy->len_alloc, "cl_dummy");
|
|
|
|
memcpy(cl_dummy->line, sc->prompt, (cl_dummy->len_alloc - cl->len));
|
|
|
|
memcpy(cl_dummy->line + ((cl_dummy->len_alloc - cl->len)) - 1, cl->line, cl->len + 1);
|
|
|
|
BLI_addtail(&sc->scrollback, cl_dummy);
|
|
|
|
}
|
|
|
|
void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy)
|
|
|
|
{
|
|
|
|
MEM_freeN(cl_dummy->line);
|
|
|
|
BLI_remlink(&sc->scrollback, cl_dummy);
|
|
|
|
}
|
2009-07-19 00:49:44 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
#define CONSOLE_DRAW_MARGIN 4
|
|
|
|
#define CONSOLE_DRAW_SCROLL 16
|
2010-09-27 15:14:58 +00:00
|
|
|
|
2009-07-16 00:50:27 +00:00
|
|
|
|
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
/* console textview callbacks */
|
|
|
|
static int console_textview_begin(TextViewContext *tvc)
|
|
|
|
{
|
|
|
|
SpaceConsole *sc= (SpaceConsole *)tvc->arg1;
|
|
|
|
tvc->lheight= sc->lheight;
|
|
|
|
tvc->sel_start= sc->sel_start;
|
|
|
|
tvc->sel_end= sc->sel_end;
|
|
|
|
|
|
|
|
/* iterator */
|
|
|
|
tvc->iter= sc->scrollback.last;
|
|
|
|
|
|
|
|
return (tvc->iter != NULL);
|
|
|
|
}
|
2009-12-27 20:22:06 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static void console_textview_end(TextViewContext *tvc)
|
2009-12-27 20:22:06 +00:00
|
|
|
{
|
2010-11-11 05:45:55 +00:00
|
|
|
SpaceConsole *sc= (SpaceConsole *)tvc->arg1;
|
|
|
|
(void)sc;
|
2010-09-27 16:35:14 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
}
|
2009-12-27 20:22:06 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static int console_textview_step(TextViewContext *tvc)
|
|
|
|
{
|
|
|
|
return ((tvc->iter= (void *)((Link *)tvc->iter)->prev) != NULL);
|
|
|
|
}
|
2010-02-26 23:56:16 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static int console_textview_line_get(struct TextViewContext *tvc, char **line, int *len)
|
|
|
|
{
|
|
|
|
ConsoleLine *cl= (ConsoleLine *)tvc->iter;
|
|
|
|
*line= cl->line;
|
|
|
|
*len= cl->len;
|
2010-02-26 23:56:16 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
return 1;
|
|
|
|
}
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static int console_textview_line_color(struct TextViewContext *tvc, unsigned char fg[3], unsigned char UNUSED(bg[3]))
|
|
|
|
{
|
|
|
|
ConsoleLine *cl= (ConsoleLine *)tvc->iter;
|
2010-09-27 15:14:58 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
/* annoying hack, to draw the prompt */
|
|
|
|
if(tvc->iter_index == 0) {
|
|
|
|
SpaceConsole *sc= (SpaceConsole *)tvc->arg1;
|
|
|
|
int prompt_len= strlen(sc->prompt);
|
|
|
|
int xy[2] = {CONSOLE_DRAW_MARGIN, CONSOLE_DRAW_MARGIN};
|
|
|
|
const int cursor = ((ConsoleLine *)sc->history.last)->cursor;
|
2010-09-27 15:14:58 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
/* cursor */
|
|
|
|
UI_GetThemeColor3ubv(TH_CONSOLE_CURSOR, (char *)fg);
|
2010-09-27 17:22:59 +00:00
|
|
|
glColor3ubv(fg);
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
glRecti(xy[0]+(tvc->cwidth*(cursor+prompt_len)) -1, xy[1]-2, xy[0]+(tvc->cwidth*(cursor+prompt_len)) +1, xy[1]+tvc->lheight-2);
|
2009-07-16 00:50:27 +00:00
|
|
|
}
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
console_line_color(fg, cl->type);
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
return TVC_LINE_FG;
|
|
|
|
}
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-02 13:12:30 +00:00
|
|
|
|
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
/* reports! */
|
|
|
|
static int report_textview_begin(TextViewContext *tvc)
|
|
|
|
{
|
|
|
|
SpaceConsole *sc= (SpaceConsole *)tvc->arg1;
|
|
|
|
ReportList *reports= (ReportList *)tvc->arg2;
|
2009-12-27 20:22:06 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
tvc->lheight= sc->lheight;
|
|
|
|
tvc->sel_start= sc->sel_start;
|
|
|
|
tvc->sel_end= sc->sel_end;
|
|
|
|
|
|
|
|
/* iterator */
|
|
|
|
tvc->iter= reports->list.last;
|
|
|
|
|
|
|
|
glClearColor(120.0/255.0, 120.0/255.0, 120.0/255.0, 1.0);
|
|
|
|
glClear(GL_COLOR_BUFFER_BIT);
|
|
|
|
|
|
|
|
return (tvc->iter != NULL);
|
|
|
|
}
|
2009-12-27 20:22:06 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static void report_textview_end(TextViewContext *UNUSED(tvc))
|
|
|
|
{
|
|
|
|
/* pass */
|
|
|
|
}
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static int report_textview_step(TextViewContext *tvc)
|
|
|
|
{
|
|
|
|
return ((tvc->iter= (void *)((Link *)tvc->iter)->prev) != NULL);
|
2009-07-16 00:50:27 +00:00
|
|
|
}
|
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
static int report_textview_line_get(struct TextViewContext *tvc, char **line, int *len)
|
2010-10-04 12:02:18 +00:00
|
|
|
{
|
2010-11-11 05:45:55 +00:00
|
|
|
Report *report= (Report *)tvc->iter;
|
|
|
|
*line= report->message;
|
|
|
|
*len= report->len;
|
|
|
|
|
|
|
|
return 1;
|
2010-10-04 12:02:18 +00:00
|
|
|
}
|
2010-11-11 05:45:55 +00:00
|
|
|
|
|
|
|
static int report_textview_line_color(struct TextViewContext *tvc, unsigned char fg[3], unsigned char bg[3])
|
2010-10-04 12:02:18 +00:00
|
|
|
{
|
2010-11-11 05:45:55 +00:00
|
|
|
Report *report= (Report *)tvc->iter;
|
|
|
|
console_report_color(fg, bg, report, tvc->iter_index % 2);
|
|
|
|
return TVC_LINE_FG | TVC_LINE_BG;
|
2010-10-04 12:02:18 +00:00
|
|
|
}
|
|
|
|
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2009-12-27 20:22:06 +00:00
|
|
|
static int console_text_main__internal(struct SpaceConsole *sc, struct ARegion *ar, ReportList *reports, int draw, int mval[2], void **mouse_pick, int *pos_pick)
|
2009-07-16 00:50:27 +00:00
|
|
|
{
|
2010-11-11 05:45:55 +00:00
|
|
|
if(sc->type==CONSOLE_TYPE_PYTHON) {
|
|
|
|
int ret= 0;
|
|
|
|
|
|
|
|
View2D *v2d= &ar->v2d;
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
TextViewContext tvc= {0};
|
|
|
|
tvc.begin= console_textview_begin;
|
|
|
|
tvc.end= console_textview_end;
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
tvc.step= console_textview_step;
|
|
|
|
tvc.line_get= console_textview_line_get;
|
|
|
|
tvc.line_color= console_textview_line_color;
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
tvc.arg1= sc;
|
|
|
|
tvc.arg2= NULL;
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
/* view */
|
|
|
|
tvc.sel_start= sc->sel_start;
|
|
|
|
tvc.sel_end= sc->sel_end;
|
|
|
|
tvc.lheight= sc->lheight;
|
|
|
|
tvc.ymin= v2d->cur.ymin;
|
|
|
|
tvc.ymax= v2d->cur.ymax;
|
|
|
|
tvc.winx= ar->winx;
|
|
|
|
|
|
|
|
{
|
|
|
|
ConsoleLine cl_dummy= {0};
|
|
|
|
console_scrollback_prompt_begin(sc, &cl_dummy);
|
|
|
|
ret= textview_draw(&tvc, draw, mval, mouse_pick, pos_pick);
|
|
|
|
console_scrollback_prompt_end(sc, &cl_dummy);
|
2009-12-27 20:22:06 +00:00
|
|
|
}
|
2009-07-16 00:50:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
int ret= 0;
|
2009-07-16 22:47:27 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
View2D *v2d= &ar->v2d;
|
2009-07-19 00:49:44 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
TextViewContext tvc= {0};
|
|
|
|
tvc.begin= report_textview_begin;
|
|
|
|
tvc.end= report_textview_end;
|
|
|
|
|
|
|
|
tvc.step= report_textview_step;
|
|
|
|
tvc.line_get= report_textview_line_get;
|
|
|
|
tvc.line_color= report_textview_line_color;
|
|
|
|
|
|
|
|
tvc.arg1= sc;
|
|
|
|
tvc.arg2= reports;
|
|
|
|
|
|
|
|
/* view */
|
|
|
|
tvc.sel_start= sc->sel_start;
|
|
|
|
tvc.sel_end= sc->sel_end;
|
|
|
|
tvc.lheight= sc->lheight;
|
|
|
|
tvc.ymin= v2d->cur.ymin;
|
|
|
|
tvc.ymax= v2d->cur.ymax;
|
|
|
|
tvc.winx= ar->winx;
|
|
|
|
|
|
|
|
{
|
|
|
|
ret= textview_draw(&tvc, draw, mval, mouse_pick, pos_pick);
|
2009-07-16 22:47:27 +00:00
|
|
|
}
|
2009-07-16 07:11:46 +00:00
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
return ret;
|
2009-07-16 00:50:27 +00:00
|
|
|
}
|
2009-07-16 22:47:27 +00:00
|
|
|
}
|
|
|
|
|
2010-11-11 05:45:55 +00:00
|
|
|
|
2009-07-16 22:47:27 +00:00
|
|
|
void console_text_main(struct SpaceConsole *sc, struct ARegion *ar, ReportList *reports)
|
|
|
|
{
|
2009-12-27 20:22:06 +00:00
|
|
|
int mval[2] = {INT_MAX, INT_MAX};
|
|
|
|
console_text_main__internal(sc, ar, reports, 1, mval, NULL, NULL);
|
2009-07-16 22:47:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int console_text_height(struct SpaceConsole *sc, struct ARegion *ar, ReportList *reports)
|
|
|
|
{
|
2009-12-27 20:22:06 +00:00
|
|
|
int mval[2] = {INT_MAX, INT_MAX};
|
|
|
|
return console_text_main__internal(sc, ar, reports, 0, mval, NULL, NULL);
|
2009-07-19 00:49:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void *console_text_pick(struct SpaceConsole *sc, struct ARegion *ar, ReportList *reports, int mouse_y)
|
|
|
|
{
|
|
|
|
void *mouse_pick= NULL;
|
2010-11-02 13:12:30 +00:00
|
|
|
int mval[2];
|
|
|
|
|
|
|
|
mval[0]= 0;
|
|
|
|
mval[1]= mouse_y;
|
|
|
|
|
2009-12-27 20:22:06 +00:00
|
|
|
console_text_main__internal(sc, ar, reports, 0, mval, &mouse_pick, NULL);
|
2009-07-19 00:49:44 +00:00
|
|
|
return (void *)mouse_pick;
|
2009-07-16 00:50:27 +00:00
|
|
|
}
|
2009-12-27 20:22:06 +00:00
|
|
|
|
|
|
|
int console_char_pick(struct SpaceConsole *sc, struct ARegion *ar, ReportList *reports, int mval[2])
|
|
|
|
{
|
|
|
|
int pos_pick= 0;
|
|
|
|
void *mouse_pick= NULL;
|
2010-09-27 17:22:59 +00:00
|
|
|
int mval_clamp[2];
|
|
|
|
|
|
|
|
mval_clamp[0]= CLAMPIS(mval[0], CONSOLE_DRAW_MARGIN, ar->winx-(CONSOLE_DRAW_SCROLL + CONSOLE_DRAW_MARGIN));
|
|
|
|
mval_clamp[1]= CLAMPIS(mval[1], CONSOLE_DRAW_MARGIN, ar->winy-CONSOLE_DRAW_MARGIN);
|
|
|
|
|
|
|
|
console_text_main__internal(sc, ar, reports, 0, mval_clamp, &mouse_pick, &pos_pick);
|
2009-12-27 20:22:06 +00:00
|
|
|
return pos_pick;
|
|
|
|
}
|