clean up some XXXs

This commit is contained in:
Bill Currie 2010-09-11 20:30:01 +09:00
parent 0f48dd0807
commit 40e39ca77b
6 changed files with 20 additions and 21 deletions

View File

@ -406,14 +406,10 @@ drawSolid
[[self window] setBackingType: NSBackingStoreRetained]; [[self window] setBackingType: NSBackingStoreRetained];
planes[0] = (unsigned char *) imagebuffer; planes[0] = (unsigned char *) imagebuffer;
NSDrawBitmap (_bounds, r_width, r_height, 8, 3, 32, r_width * 4, NO, NO, @"RGB", // FIXME NSDrawBitmap (_bounds, r_width, r_height, 8, 3, 32, r_width * 4, NO, NO,
// what NSCalibratedRGBColorSpace,
// should (const unsigned char **) planes);
// this
// be?
(const unsigned char **const) planes);
// XXX NSPing ();
[[self window] setBackingType: NSBackingStoreBuffered]; [[self window] setBackingType: NSBackingStoreBuffered];
@ -474,7 +470,6 @@ drawSelf
[self drawWire: rects]; [self drawWire: rects];
if (timedrawing) { if (timedrawing) {
// XXX NSPing ();
drawtime = Sys_DoubleTime () - drawtime; drawtime = Sys_DoubleTime () - drawtime;
printf ("CameraView drawtime: %5.3f\n", drawtime); printf ("CameraView drawtime: %5.3f\n", drawtime);
} }
@ -555,7 +550,7 @@ modalMoveLoop
-modalMoveLoop:(NSPoint *)basept :(vec3_t)movemod :converter -modalMoveLoop:(NSPoint *)basept :(vec3_t)movemod :converter
{ {
vec3_t originbase; vec3_t originbase;
NSEvent *event = 0; // XXX NSEvent *event = 0;
NSPoint newpt; NSPoint newpt;
// NSPoint brushpt; // NSPoint brushpt;
@ -695,7 +690,7 @@ viewDrag:
-viewDrag:(NSPoint *)pt -viewDrag:(NSPoint *)pt
{ {
float dx, dy; float dx, dy;
NSEvent *event = 0; // XXX NSEvent *event = 0;
NSPoint newpt; NSPoint newpt;
// //

View File

@ -7,6 +7,7 @@
#include "Clipper.h" #include "Clipper.h"
#include "Map.h" #include "Map.h"
#include "XYView.h" #include "XYView.h"
#include "ZView.h"
#include "CameraView.h" #include "CameraView.h"
#include "QuakeEd.h" #include "QuakeEd.h"
@ -187,7 +188,8 @@ XYDrag
char text[8]; char text[8];
PSsetrgbcolor (1, 0.5, 0); PSsetrgbcolor (1, 0.5, 0);
// XXX PSselectfont("Helvetica-Medium",10/[xyview_i currentScale]); GSSetFont (DEFCTXT, [NSFont fontWithName: @"Helvetica-Medium"
size: 10 / [xyview_i currentScale]]);
PSrotate (0); PSrotate (0);
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
@ -207,7 +209,8 @@ XYDrag
char text[8]; char text[8];
PSsetrgbcolor (1, 0.5, 0); PSsetrgbcolor (1, 0.5, 0);
// XXX PSselectfont("Helvetica-Medium",10/[zview_i currentScale]); GSSetFont (DEFCTXT, [NSFont fontWithName: @"Helvetica-Medium"
size: 10 / [zview_i currentScale]]);
PSrotate (0); PSrotate (0);
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {

View File

@ -30,9 +30,9 @@ initWithFrame:
ent =[map_i currentEntity]; ent =[map_i currentEntity];
count =[ent numPairs]; count =[ent numPairs];
// XXX[_super_view setFlipped: YES]; //XXX[[self superview] setFlipped: YES];
b =[_super_view bounds]; b =[[self superview] bounds];
b.size.height = LINEHEIGHT * count + SPACING; b.size.height = LINEHEIGHT * count + SPACING;
[self setBounds:b]; [self setBounds:b];
pt.x = pt.y = 0; pt.x = pt.y = 0;
@ -45,10 +45,11 @@ initWithFrame:
epair_t *pair; epair_t *pair;
int y; int y;
// XXX PSsetgray(NSGrayComponent(NS_COLORLTGRAY)); PSsetgray(NSLightGray);
PSrectfill (0, 0, _bounds.size.width, _bounds.size.height); PSrectfill (0, 0, _bounds.size.width, _bounds.size.height);
// XXX PSselectfont("Helvetica-Bold",FONTSIZE); GSSetFont (DEFCTXT, [NSFont fontWithName: @"Helvetica-Medium"
size: FONTSIZE]);
PSrotate (0); PSrotate (0);
PSsetgray (0); PSsetgray (0);

View File

@ -171,9 +171,9 @@ FILE METHODS
return; return;
} }
#define FN_DEVLOG "/qcache/devlog"
-writeStats -writeStats
{ {
/*XXX
FILE *f; FILE *f;
extern int c_updateall; extern int c_updateall;
struct timeval tp; struct timeval tp;
@ -185,7 +185,6 @@ FILE METHODS
fprintf (f,"%i %i\n", (int)tp.tv_sec, c_updateall); fprintf (f,"%i %i\n", (int)tp.tv_sec, c_updateall);
c_updateall = 0; c_updateall = 0;
fclose (f); fclose (f);
*/
return self; return self;
} }

View File

@ -62,7 +62,7 @@ NOTE: I am specifically not using cached image reps, because the data is also ne
r.size.width += TEX_INDENT * 2; r.size.width += TEX_INDENT * 2;
r.size.height += TEX_INDENT * 2; r.size.height += TEX_INDENT * 2;
// XXX PSsetgray(NSGrayComponent(NS_COLORLTGRAY)); PSsetgray(NSLightGray);
PSrectfill (r.origin.x, r.origin.y, r.size.width, r.size.height); PSrectfill (r.origin.x, r.origin.y, r.size.width, r.size.height);
p = t->r.origin; p = t->r.origin;
p.y += TEX_SPACING; p.y += TEX_SPACING;

View File

@ -277,7 +277,8 @@ If realbounds has shrunk, nothing will change.
// XXX[self suspendNotifyAncestorWhenFrameChanged:YES]; // XXX[self suspendNotifyAncestorWhenFrameChanged:YES];
[self setBoundsSize:sbounds.size]; [self setBoundsSize:sbounds.size];
// XXX[self setDrawOrigin: -sbounds.size.width/2 : sbounds.origin.y]; [self setBoundsOrigin: NSMakePoint (-sbounds.size.width / 2,
sbounds.origin.y)];
// XXX[self moveTo: -sbounds.size.width/2 : sbounds.origin.y]; // XXX[self moveTo: -sbounds.size.width/2 : sbounds.origin.y];
// XXX[self suspendNotifyAncestorWhenFrameChanged:NO]; // XXX[self suspendNotifyAncestorWhenFrameChanged:NO];
// XXX[[_super_view _super_view] reflectScroll: _super_view]; // XXX[[_super_view _super_view] reflectScroll: _super_view];