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

View file

@ -7,6 +7,7 @@
#include "Clipper.h"
#include "Map.h"
#include "XYView.h"
#include "ZView.h"
#include "CameraView.h"
#include "QuakeEd.h"
@ -187,7 +188,8 @@ XYDrag
char text[8];
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);
for (i = 0; i < num; i++) {
@ -207,7 +209,8 @@ XYDrag
char text[8];
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);
for (i = 0; i < num; i++) {

View file

@ -30,9 +30,9 @@ initWithFrame:
ent =[map_i currentEntity];
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;
[self setBounds:b];
pt.x = pt.y = 0;
@ -45,10 +45,11 @@ initWithFrame:
epair_t *pair;
int y;
// XXX PSsetgray(NSGrayComponent(NS_COLORLTGRAY));
PSsetgray(NSLightGray);
PSrectfill (0, 0, _bounds.size.width, _bounds.size.height);
// XXX PSselectfont("Helvetica-Bold",FONTSIZE);
GSSetFont (DEFCTXT, [NSFont fontWithName: @"Helvetica-Medium"
size: FONTSIZE]);
PSrotate (0);
PSsetgray (0);

View file

@ -171,9 +171,9 @@ FILE METHODS
return;
}
#define FN_DEVLOG "/qcache/devlog"
-writeStats
{
/*XXX
FILE *f;
extern int c_updateall;
struct timeval tp;
@ -185,7 +185,6 @@ FILE METHODS
fprintf (f,"%i %i\n", (int)tp.tv_sec, c_updateall);
c_updateall = 0;
fclose (f);
*/
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.height += TEX_INDENT * 2;
// XXX PSsetgray(NSGrayComponent(NS_COLORLTGRAY));
PSsetgray(NSLightGray);
PSrectfill (r.origin.x, r.origin.y, r.size.width, r.size.height);
p = t->r.origin;
p.y += TEX_SPACING;

View file

@ -277,7 +277,8 @@ If realbounds has shrunk, nothing will change.
// XXX[self suspendNotifyAncestorWhenFrameChanged:YES];
[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 suspendNotifyAncestorWhenFrameChanged:NO];
// XXX[[_super_view _super_view] reflectScroll: _super_view];