The R Project SVN R

Rev

Rev 27236 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27236 Rev 31242
Line 26... Line 26...
26
 
26
 
27
#ifdef HAVE_CONFIG_H
27
#ifdef HAVE_CONFIG_H
28
#include <Rconfig.h>
28
#include <Rconfig.h>
29
#endif
29
#endif
30
 
30
 
31
#include "Defn.h"
31
#include <Defn.h>
32
#include "Graphics.h"
32
#include <Graphics.h>
-
 
33
#include <Rdevices.h>
33
#include <stdio.h>
34
#include <stdio.h>
34
#include <windows.h>
35
#include <windows.h>
35
 
36
 
36
#include "SC_proxy.h"
37
#include "SC_proxy.h"
37
 
38
 
Line 106... Line 107...
106
				     double pY,
107
				     double pY,
107
				     double pRad,
108
				     double pRad,
108
				     R_GE_gcontext *gc,
109
				     R_GE_gcontext *gc,
109
				     NewDevDesc* pDD)
110
				     NewDevDesc* pDD)
110
{
111
{
-
 
112
/*  OutputDebugString("R_Proxy_Graphics_Circle()\n"); */
111
  if (__graphics_device)
113
  if (__graphics_device)
112
    {
114
    {
113
      __graphics_device->vtbl->circle (__graphics_device,
115
      __graphics_device->vtbl->circle (__graphics_device,
114
				       pX,
116
				       pX,
115
				       pY,
117
				       pY,
Line 421... Line 423...
421
 
423
 
422
  MessageBox (GetDesktopWindow (),"MetricInfo()","R_Proxy_Graphics",MB_OK);
424
  MessageBox (GetDesktopWindow (),"MetricInfo()","R_Proxy_Graphics",MB_OK);
423
}
425
}
424
 
426
 
425
/* 01-01-25 | baier | new paramters */
427
/* 01-01-25 | baier | new paramters */
-
 
428
/* 04-09-27 | baier | startcol, startfill */
426
int R_Proxy_Graphics_Driver (NewDevDesc* pDD,
429
int R_Proxy_Graphics_Driver (NewDevDesc* pDD,
427
			     char* pDisplay,
430
			     char* pDisplay,
428
			     double pWidth,
431
			     double pWidth,
429
			     double pHeight,
432
			     double pHeight,
430
			     double pPointSize,
433
			     double pPointSize,
Line 432... Line 435...
432
			     int pResize,
435
			     int pResize,
433
			     struct _SC_GraphicsDevice* pDevice)
436
			     struct _SC_GraphicsDevice* pDevice)
434
{
437
{
435
  pDD->startfont = 1;
438
  pDD->startfont = 1;
436
  pDD->startps = pPointSize;
439
  pDD->startps = pPointSize;
437
  pDD->startcol = 0;
440
  pDD->startcol = R_RGB(0, 0, 0);
438
  pDD->startfill = NA_INTEGER;
441
  pDD->startfill = R_TRANWHITE;
439
  pDD->startlty = LTY_SOLID;
442
  pDD->startlty = LTY_SOLID;
440
  pDD->startgamma = 1;
443
  pDD->startgamma = 1;
441
 
444
 
442
  /* init the device-specific functionality here */
445
  /* init the device-specific functionality here */
443
  pDD->deviceSpecific = (void *) NULL;
446
  pDD->deviceSpecific = (void *) NULL;
Line 506... Line 509...
506
  pDD->canResizePlot = 1;
509
  pDD->canResizePlot = 1;
507
  pDD->canChangeFont = 0;
510
  pDD->canChangeFont = 0;
508
  pDD->canRotateText = 1;
511
  pDD->canRotateText = 1;
509
  pDD->canResizeText = 1;
512
  pDD->canResizeText = 1;
510
  pDD->canClip = 1;
513
  pDD->canClip = 1;
-
 
514
  pDD->displayListOn = 1;
511
 
515
 
512
  /* initialise x11 device description (most of the work */
516
  /* initialise x11 device description (most of the work */
513
  /* has been done in X11_Open) */
517
  /* has been done in X11_Open) */
514
 
518
 
515
  pDD->displayListOn = 1;
-
 
516
  return 1;
519
  return 1;
517
}
520
}