Changeset 289
- Timestamp:
- 06/27/08 10:09:36 (4 months ago)
- Files:
-
- GtkRadiant/trunk/contrib/bkgrnd2d/bkgrnd2d.cpp (modified) (6 diffs)
- GtkRadiant/trunk/contrib/bkgrnd2d/dialog.cpp (modified) (1 diff)
- GtkRadiant/trunk/contrib/bkgrnd2d/plugin.cpp (modified) (10 diffs)
- GtkRadiant/trunk/include/ifilesystem.h (modified) (3 diffs)
- GtkRadiant/trunk/include/qerplugin.h (modified) (1 diff)
- GtkRadiant/trunk/include/qertypes.h (modified) (2 diffs)
- GtkRadiant/trunk/libs/synapse/synapse.cpp (modified) (1 diff)
- GtkRadiant/trunk/plugins/image/lbmlib.cpp (modified) (7 diffs)
- GtkRadiant/trunk/plugins/imagepng/plugin.cpp (modified) (9 diffs)
- GtkRadiant/trunk/plugins/vfspak/vfs.cpp (modified) (1 diff)
- GtkRadiant/trunk/plugins/vfspk3/vfs.cpp (modified) (1 diff)
- GtkRadiant/trunk/radiant/brush.cpp (modified) (1 diff)
- GtkRadiant/trunk/radiant/drag.cpp (modified) (15 diffs)
- GtkRadiant/trunk/radiant/eclass.cpp (modified) (9 diffs)
- GtkRadiant/trunk/radiant/error.cpp (modified) (1 diff)
- GtkRadiant/trunk/radiant/groupdialog.cpp (modified) (2 diffs)
- GtkRadiant/trunk/radiant/gtkdlgs.cpp (modified) (4 diffs)
- GtkRadiant/trunk/radiant/gtkmisc.cpp (modified) (1 diff)
- GtkRadiant/trunk/radiant/main.cpp (modified) (4 diffs)
- GtkRadiant/trunk/radiant/mainframe.cpp (modified) (7 diffs)
- GtkRadiant/trunk/radiant/map.cpp (modified) (2 diffs)
- GtkRadiant/trunk/radiant/patchdialog.cpp (modified) (5 diffs)
- GtkRadiant/trunk/radiant/preferences.cpp (modified) (4 diffs)
- GtkRadiant/trunk/radiant/qe3.cpp (modified) (4 diffs)
- GtkRadiant/trunk/radiant/qe3.h (modified) (2 diffs)
- GtkRadiant/trunk/radiant/qgl.h (modified) (1 diff)
- GtkRadiant/trunk/radiant/select.cpp (modified) (40 diffs)
- GtkRadiant/trunk/radiant/texwindow.cpp (modified) (5 diffs)
- GtkRadiant/trunk/radiant/xywindow.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/trunk/contrib/bkgrnd2d/bkgrnd2d.cpp
r185 r289 96 96 97 97 /* 98 * should cleanup, but I don't think we can be sure it happens before our 98 * should cleanup, but I don't think we can be sure it happens before our 99 99 * interfaces are gone 100 100 CBackgroundImage::~CBackgroundImage() … … 155 155 { 156 156 qtexture_t *newtex; 157 157 158 158 unsigned char *image = NULL; // gets allocated with what ? g_malloc 159 159 int width = 0, height = 0; … … 167 167 168 168 // just in case we want to build for an old version 169 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=900170 169 #ifdef BKGRND2D_JPG_WORKAROUND 171 170 if ( strlen(filename) > 4 && !strcmp(".jpg",filename + strlen(filename) - 4)) { … … 178 177 } 179 178 #endif 180 179 181 180 //TODO bug for stored texture size 182 181 //TODO whose gl context are we in, anyway ? … … 253 252 //TODO should never happen 254 253 if(!selected_brushes) { 255 Sys_Printf (MSG_PREFIX "selected_brushes = NULL\n"); 254 Sys_Printf (MSG_PREFIX "selected_brushes = NULL\n"); 256 255 return false; 257 256 } 258 257 // this should mean no selection 259 258 if(selected_brushes == selected_brushes->next) { 260 Sys_Printf (MSG_PREFIX "nothing selected\n"); 259 Sys_Printf (MSG_PREFIX "nothing selected\n"); 261 260 262 261 return false; … … 299 298 vec3_t mins,maxs; 300 299 301 if(!get_selection_bounds(mins,maxs)) 300 if(!get_selection_bounds(mins,maxs)) 302 301 return false; 303 302 GtkRadiant/trunk/contrib/bkgrnd2d/dialog.cpp
r283 r289 146 146 //TODO bug/patch for comments 147 147 //TODO patern gets fucked up sometimes if empty 148 //http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=915149 148 newfile = g_FuncTable.m_pfnFileDialog(pDialogWnd,TRUE, 150 149 "Load Background Image",browsedir,FILETYPE_KEY); GtkRadiant/trunk/contrib/bkgrnd2d/plugin.cpp
r185 r289 25 25 // Code by reyalP aka Reed Mideke 26 26 // 27 // Based on 27 // Based on 28 28 // 29 29 … … 44 44 - tooltips, follow gtkradiant coding conventions 45 45 46 Why ?47 -----48 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=8849 50 51 46 How ? 52 47 ----- … … 59 54 #include "dialog.h" 60 55 61 #define CMD_SEP "-" 56 #define CMD_SEP "-" 62 57 #define CMD_CONFIG "Configure..." 63 58 #define CMD_ABOUT "About..." … … 81 76 82 77 //backwards for some reason 83 static const char *PLUGIN_COMMANDS = CMD_ABOUT ";" 78 static const char *PLUGIN_COMMANDS = CMD_ABOUT ";" 84 79 CMD_SEP ";" 85 80 CMD_CONFIG … … 106 101 }; 107 102 108 struct toolbar_button_info_s toolbar_buttons[NUM_TOOLBAR_BUTTONS] = 103 struct toolbar_button_info_s toolbar_buttons[NUM_TOOLBAR_BUTTONS] = 109 104 { 110 105 { … … 205 200 extern "C" void QERPlug_Dispatch (const char *p, vec3_t vMin, vec3_t vMax, bool bSingleBrush) 206 201 { 207 Sys_Printf (MSG_PREFIX "Command \"%s\"\n",p); 202 Sys_Printf (MSG_PREFIX "Command \"%s\"\n",p); 208 203 if(!strcmp(p, CMD_ABOUT)) { 209 204 g_FuncTable.m_pfnMessageBox(NULL, PLUGIN_ABOUT, "About", MB_OK, NULL); 210 } 205 } 211 206 else if(!strcmp(p,CMD_CONFIG)) { 212 207 ShowBackgroundDialog(); … … 217 212 void DoBkgrndToggleXY() 218 213 { 219 Sys_Printf (MSG_PREFIX "DoBkgrndToggleXY\n"); 214 Sys_Printf (MSG_PREFIX "DoBkgrndToggleXY\n"); 220 215 // always toggle, since the buttons do 221 216 backgroundXY.m_bActive = (backgroundXY.m_bActive) ? false:true; … … 231 226 void DoBkgrndToggleXZ() 232 227 { 233 Sys_Printf (MSG_PREFIX "DoBkgrndToggleXZ\n"); 228 Sys_Printf (MSG_PREFIX "DoBkgrndToggleXZ\n"); 234 229 backgroundXZ.m_bActive = (backgroundXZ.m_bActive) ? false:true; 235 230 if(backgroundXZ.m_bActive && !backgroundXZ.Valid()) … … 241 236 void DoBkgrndToggleYZ() 242 237 { 243 Sys_Printf (MSG_PREFIX "DoBkgrndToggleYZ\n"); 238 Sys_Printf (MSG_PREFIX "DoBkgrndToggleYZ\n"); 244 239 backgroundYZ.m_bActive = (backgroundYZ.m_bActive) ? false:true; 245 240 if(backgroundYZ.m_bActive && !backgroundYZ.Valid()) … … 254 249 CSynapseServer* g_pSynapseServer = NULL; 255 250 CSynapseClientBkgrnd2d g_SynapseClient; 256 251 257 252 #if __GNUC__ >= 4 258 253 #pragma GCC visibility push(default) GtkRadiant/trunk/include/ifilesystem.h
r183 r289 47 47 // free memory allocated by VFS for this pointer 48 48 typedef void (* PFN_VFSFREEFILE) (void *p); 49 // return a GSList with all the directories under basedir 49 // return a GSList with all the directories under basedir 50 50 typedef GSList* (* PFN_VFSGETDIRLIST) (const char *basedir); 51 51 // return a GSList with all the files under basedir (extension can be NULL) … … 69 69 WARNING: the allocated buffer must be freed with a g_free call 70 70 NOTE TTimo: the g_free release is utter horror 71 see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=49172 71 */ 73 72 typedef int (* PFN_VFSLOADFILE) (const char *filename, void **buffer, int index); … … 91 90 FIXME TTimo our VFS names are case insensitive. 92 91 this function is not able to build the full path from case-insensitive name 93 ( this is http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130 )94 92 */ 95 93 typedef char* (* PFN_VFSGETFULLPATH) (const char *in, int index, int flag); GtkRadiant/trunk/include/qerplugin.h
r264 r289 465 465 this will work from the RGBA data and create a GL texture (accessed through a GL bind number) 466 466 it takes care of creating the mipmapping levels too 467 see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=575 for some related issues468 467 */ 469 468 typedef qtexture_t* (* PFN_QERAPP_LOADTEXTURERGBA)(unsigned char* pPixels, int nWidth, int nHeight); GtkRadiant/trunk/include/qertypes.h
r264 r289 715 715 #endif // USEPLUGINENTITIES 716 716 717 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=252718 717 // this is cam code addition? 719 718 vec3_t color; … … 902 901 // there are too many uneccessary calls to Sys_QGL_ExtensionSupported 903 902 // NOTE TTimo: those are unused atm (set right, but not used) 904 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=623905 903 bool m_bOpenGLCompressionSupported; 906 904 bool m_bS3CompressionSupported; GtkRadiant/trunk/libs/synapse/synapse.cpp
r263 r289 1094 1094 return mAPIs[i]; 1095 1095 } 1096 1097 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=8791098 void fini_stub() {1099 printf( "fini_stub\n" );1100 }GtkRadiant/trunk/plugins/image/lbmlib.cpp
r185 r289 287 287 int dataByte, runLength; 288 288 byte *out, *pix; 289 289 290 290 291 291 /* load the file */ 292 292 len = vfsLoadFile (filename, (void **)&raw, 0); 293 if( len == -1 ) 293 if( len == -1 ) 294 294 Error( "LoadPCX: Couldn't read %s", filename ); 295 295 … … 298 298 pcx = (pcx_t *)raw; 299 299 raw = &pcx->data; 300 300 301 301 pcx->xmin = LittleShort(pcx->xmin); 302 302 pcx->ymin = LittleShort(pcx->ymin); … … 307 307 pcx->bytes_per_line = LittleShort(pcx->bytes_per_line); 308 308 pcx->palette_type = LittleShort(pcx->palette_type); 309 309 310 310 if (pcx->manufacturer != 0x0a 311 311 || pcx->version != 5 … … 336 336 *pic = out; 337 337 pix = out; 338 338 339 339 /* RR2DO2: pcx fix */ 340 340 lsize = pcx->color_planes * pcx->bytes_per_line; 341 341 342 342 /* go scanline by scanline */ 343 343 for( y = 0; y <= pcx->ymax; y++, pix += pcx->xmax + 1 ) … … 361 361 x++; 362 362 } 363 363 364 364 /* validity check */ 365 365 if( raw - (byte *) pcx > len) … … 517 517 *pixbuf++ = 255; 518 518 break; 519 519 520 520 case 24: 521 521 blue = *buf_p++; … … 553 553 if (!bAlphaOK) 554 554 { 555 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=444 556 if (targa_header.pixel_size == 32) 555 if (targa_header.pixel_size == 32) 557 556 Sys_FPrintf (SYS_WRN, "WARNING: %s has empty alpha channel\n", name); 558 557 // disable the alpha value GtkRadiant/trunk/plugins/imagepng/plugin.cpp
r191 r289 39 39 bool RequestAPI(APIDescriptor_t *pAPI); 40 40 const char* GetInfo(); 41 41 42 42 CSynapseClientImage() { } 43 43 virtual ~CSynapseClientImage() { } … … 66 66 g_SynapseClient.AddAPI(RADIANT_MAJOR, NULL, sizeof(_QERFuncTable_1), SYN_REQUIRE, &g_FuncTable); 67 67 // NOTE: if imagepng starts being used for non "VFS" "pk3" config, need to add a dynamic config chunk 68 // see:69 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=79470 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=80071 68 g_SynapseClient.AddAPI(VFS_MAJOR, "pk3", sizeof(_QERFileSystemTable), SYN_REQUIRE, &g_FileSystemTable); 72 69 … … 77 74 { 78 75 if (!strcmp(pAPI->major_name, IMAGE_MAJOR)) 79 { 76 { 80 77 _QERPlugImageTable* pTable= static_cast<_QERPlugImageTable*>(pAPI->mpTable); 81 78 if (!strcmp(pAPI->minor_name, "png")) … … 136 133 137 134 p_fbuffer = fbuffer; 138 135 139 136 // the reading glue 140 137 // http://www.libpng.org/pub/png/libpng-manual.html … … 148 145 return; 149 146 } 150 147 151 148 png_infop info_ptr = png_create_info_struct(png_ptr); 152 149 if (!info_ptr) { … … 156 153 return; 157 154 } 158 155 159 156 png_infop end_info = png_create_info_struct(png_ptr); 160 157 if (!end_info) { … … 185 182 186 183 // we want to treat all images the same way 187 // The following code transforms grayscale images of less than 8 to 8 bits, 188 // changes paletted images to RGB, and adds a full alpha channel if there is 184 // The following code transforms grayscale images of less than 8 to 8 bits, 185 // changes paletted images to RGB, and adds a full alpha channel if there is 189 186 // transparency information in a tRNS chunk. 190 187 if (color_type == PNG_COLOR_TYPE_PALETTE) … … 202 199 203 200 if (png_get_bKGD(png_ptr, info_ptr, &image_background)) 204 png_set_background(png_ptr, image_background, 201 png_set_background(png_ptr, image_background, 205 202 PNG_BACKGROUND_GAMMA_FILE, 1, 1.0); 206 203 else … … 224 221 int size = (*width)*(*height)*4; 225 222 // still have to use that g_malloc heresy 226 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=491227 223 *pic = (unsigned char *)g_malloc(size); 228 224 row_pointers = (png_byte**) malloc((*height) * sizeof(png_byte*)); GtkRadiant/trunk/plugins/vfspak/vfs.cpp
r275 r289 629 629 /*! 630 630 \param shorten will try to match against the short version 631 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=144632 631 recent switch back to short path names in project settings has broken some stuff 633 632 with shorten == true, we will convert in to short version before looking for root GtkRadiant/trunk/plugins/vfspk3/vfs.cpp
r275 r289 654 654 /*! 655 655 \param shorten will try to match against the short version 656 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=144657 656 recent switch back to short path names in project settings has broken some stuff 658 657 with shorten == true, we will convert in to short version before looking for root GtkRadiant/trunk/radiant/brush.cpp
r264 r289 1996 1996 Returns the face hit and the distance along the ray the intersection occured at 1997 1997 Returns NULL and 0 if not hit at all 1998 1999 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=5562000 1998 ============== 2001 1999 */ GtkRadiant/trunk/radiant/drag.cpp
r185 r289 79 79 else 80 80 v[i] = 1; 81 81 82 82 } 83 83 … … 97 97 98 98 drag_first = true; 99 99 100 100 VectorCopy (vec3_origin, pressdelta); 101 101 pressx = x; … … 110 110 if (g_qeglobals.d_select_mode == sel_curvepoint) 111 111 { 112 SelectCurvePointByRay (origin, dir, buttons); 112 SelectCurvePointByRay (origin, dir, buttons); 113 113 114 114 if(g_qeglobals.d_select_mode == sel_area) … … 142 142 Sys_UpdateWindows(W_ALL); 143 143 144 drag_ok = true; 144 drag_ok = true; 145 145 return; 146 146 } … … 159 159 if (g_qeglobals.d_select_mode == sel_vertex) 160 160 { 161 SelectVertexByRay (origin, dir); 161 SelectVertexByRay (origin, dir); 162 162 if (g_qeglobals.d_num_move_points) 163 163 { … … 173 173 if (g_qeglobals.d_select_mode == sel_edge) 174 174 { 175 SelectEdgeByRay (origin, dir); 175 SelectEdgeByRay (origin, dir); 176 176 if (g_qeglobals.d_num_move_points) 177 177 { … … 207 207 else 208 208 Sys_Printf ("Dragging entire selection\n"); 209 209 210 210 return; 211 211 } … … 301 301 302 302 peLink = pe; 303 303 304 304 } 305 305 … … 364 364 Select_Ray (origin, dir, nFlag); 365 365 UpdateSurfaceDialog(); 366 366 367 367 return; 368 368 } … … 492 492 fLargest = vColor[i]; 493 493 } 494 494 495 495 if (fLargest == 0.0f) 496 496 { … … 517 517 else 518 518 { 519 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=425520 519 Face_SetShader(t.face, g_qeglobals.d_texturewin.texdef.GetName()); 521 520 Brush_Build(t.brush); … … 567 566 nAxis = 2; 568 567 } 569 else 568 else 570 569 if (g_pParentWnd->ActiveXY()->GetViewType() == XZ) 571 570 { … … 605 604 v[2] = 1.1f; 606 605 } 607 else 606 else 608 607 if (move[1] < 0) 609 608 { … … 633 632 // this is fairly crappy way to deal with curvepoint and area selection 634 633 // but it touches the smallest amount of code this way 635 // 634 // 636 635 if (g_qeglobals.d_num_move_points || g_qeglobals.d_select_mode == sel_vertex || g_qeglobals.d_select_mode == sel_area || g_qeglobals.d_select_mode == sel_areatall) 637 636 { … … 830 829 Sys_UpdateWindows (W_CAMERA); 831 830 } 832 833 /* note: added cleanup here, since an edge drag will leave selected vertices 831 832 /* note: added cleanup here, since an edge drag will leave selected vertices 834 833 in g_qeglobals.d_num_move_points 835 834 */ 836 if ( g_qeglobals.d_select_mode != sel_vertex && 835 if ( g_qeglobals.d_select_mode != sel_vertex && 837 836 g_qeglobals.d_select_mode != sel_curvepoint && 838 837 g_qeglobals.d_select_mode != sel_edge) 839 838 g_qeglobals.d_num_move_points = 0; 840 839 841 840 g_pParentWnd->SetStatusText(3, ""); 842 841 Undo_EndBrushList(&selected_brushes); GtkRadiant/trunk/radiant/eclass.cpp
r185 r289 86 86 model = model->pNext; 87 87 } 88 88 89 89 if (pList->modelpath) { 90 90 free(pList->modelpath); … … 95 95 pList->skinpath = NULL; 96 96 } 97 97 98 98 free(pList->name); 99 99 free(pList->comments); … … 124 124 { 125 125 eclass_t *s; 126 126 127 127 if (!pList) 128 128 { … … 163 163 #else 164 164 eclass_t *s; 165 165 166 166 if (!eclass) 167 167 { … … 210 210 if (pFiles) 211 211 { 212 212 213 213 // find an eclass without a modelpath. 214 214 for (e=eclass ; e ; e=e->next) … … 289 289 strcpy(relPath, "scripts/"); 290 290 strcat(relPath, (char*)pFile->data); 291 // FIXME TTimo http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130292 291 if (!vfsGetFullPath(relPath, 0, 0)) 293 292 { 294 293 Sys_FPrintf(SYS_ERR, "Failed to find the full path for '%s' in the VFS\n", relPath); 295 Sys_FPrintf(SYS_ERR, "did you hit bug http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130 ?\n");296 294 } 297 295 else … … 360 358 // start by creating the default unknown eclass 361 359 eclass_bad = EClass_Create("UNKNOWN_CLASS" , 0, 0.5, 0,NULL,NULL,NULL); 362 360 363 361 // now scan the definitions 364 362 _EClassTable *pTable = &g_EClassDefTable; … … 434 432 strcpy(relPath, "scripts/"); 435 433 strcat(relPath, (char*)pFile->data); 436 // FIXME TTimo http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130437 434 char *fullpath = vfsGetFullPath(relPath, 0, 0); 438 435 if (!fullpath) 439 436 { 440 437 Sys_FPrintf(SYS_ERR, "Failed to find the full path for \"%s\" in the VFS\n", relPath); 441 Sys_FPrintf(SYS_ERR, "did you hit bug http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130 ?\n");442 438 } 443 439 else … … 452 448 else 453 449 Sys_FPrintf(SYS_ERR, "Didn't find any scripts/*.%s files to load EClass information\n", pTable->m_pfnGetExtension()); 454 450 455 451 // we deal with two formats max, if the other table exists, loop again 456 452 if (g_bHaveEClassExt && pTable == &g_EClassDefTable) GtkRadiant/trunk/radiant/error.cpp
r264 r289 80 80 Gtk will only crunch 0<=char<=127 81 81 this is a bit hackish, but I didn't find useful functions in win32 API for this 82 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=51683 82 */ 84 83 TCHAR *scan, *next = (TCHAR*)lpMsgBuf; GtkRadiant/trunk/radiant/groupdialog.cpp
r285 r289 40 40 int inspector_mode; // W_TEXTURE, W_ENTITY, or W_CONSOLE 41 41 qboolean multiple_entities; 42 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1743 42 qboolean disable_spawn_get = false; 44 43 entity_t *edit_entity; … … 989 988 GtkTreeIter selected; 990 989 // no world entity, we are not ready yet 991 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=917992 990 if( !world_entity ) { 993 991 return; GtkRadiant/trunk/radiant/gtkdlgs.cpp
r271 r289 1999 1999 int i; 2000 2000 2001 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=5032002 2001 // making this work when regioning is on too 2003 2002 … … 3587 3586 3588 3587 // start by a warning message 3589 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=4593590 3588 // mattn: URLs no longer valid 3591 3589 // CString msg; … … 3714 3712 3715 3713 // several attempts 3716 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=3553717 3714 #if 0 3718 3715 #ifdef _WIN32 … … 3937 3934 3938 3935 // old win32 code with EditPad bindings, broken 3939 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=3553940 3936 #if 0 3941 3937 strEditCommand = g_strAppPath.GetBuffer(); GtkRadiant/trunk/radiant/gtkmisc.cpp
r286 r289 82 82 void win32_get_window_pos(GtkWidget *widget, gint *x, gint *y) 83 83 { 84 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=91385 84 if ( g_PrefsDlg.m_bStartOnPrimMon ) { 86 85 RECT rc; GtkRadiant/trunk/radiant/main.cpp
r265 r289 587 587 and to turn on console logging for lookup of the problem 588 588 this is the first part of the two step .pid system 589 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=297590 589 */ 591 590 g_pidFile = g_strTempPath.GetBuffer (); … … 645 644 // make something idiot proof and someone will make better idiots, this may be overkill 646 645 // let's leave it disabled in debug mode in any case 647 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=431648 646 #ifndef _DEBUG 649 647 //#define CHECK_VERSION … … 725 723 /*! 726 724 now the secondary game dependant .pid file 727 http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=297728 725 */ 729 726 g_pidGameFile = g_PrefsDlg.m_rc_path->str; … … 801 798 } 802 799 803 // FIXME http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=639804 800 // we should search in g_strTempPath, then move over to look at g_strAppPath? 805 801 #ifdef _WIN32 GtkRadiant/trunk/radiant/mainframe.cpp
r286 r289 55 55 CString g_strAppPath; ///< holds the full path of the executable 56 56 CString g_strDTDPath; ///< path to the DTD files 57 /*!58 see http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=297 for the two below59 */60 57 CString g_pidFile; ///< the global .pid file (only for global part of the startup) 61 58 CString g_pidGameFile; ///< the game-specific .pid file … … 744 741 unsigned int code = gdk_keyval_to_upper(event->keyval); 745 742 746 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=924747 743 if(code == GDK_ISO_Left_Tab) { 748 744 code = GDK_Tab; … … 753 749 #endif 754 750 755 // BUG: http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=865756 751 // return only if Texture Viewport is in main window, otherwise if Tex viewport is in it's own window 757 752 // the Filter GtkEntry won't release focus … … 1425 1420 item = create_menu_item_with_mnemonic (menu, _("Previous leak spot"), 1426 1421 GTK_SIGNAL_FUNC (HandleCommand), ID_MISC_PREVIOUSLEAKSPOT); 1427 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=394 1428 // create_menu_item_with_mnemonic (menu, _("_Print XY View"), GTK_SIGNAL_FUNC (HandleCommand), ID_MISC_PRINTXY); 1422 create_menu_item_with_mnemonic (menu, _("_Print XY View"), GTK_SIGNAL_FUNC (HandleCommand), ID_MISC_PRINTXY); 1429 1423 item = create_menu_item_with_mnemonic (menu, _("_Select Entity Color..."), 1430 1424 GTK_SIGNAL_FUNC (HandleCommand), ID_MISC_SELECTENTITYCOLOR); … … 5614 5608 void MainFrame::OnBspCommand (unsigned int nID) 5615 5609 { 5616 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=5035617 5610 // make sure we don't attempt to region compile a map with the camera outside the region 5618 5611 if (region_active) … … 5769 5762 // check if that works with fs_game (I suspect some more design is needed) 5770 5763 // see how this is done in 1.2? 5771 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=5075772 5764 strcpy (def_path, g_pGameDescription->mEnginePath.GetBuffer()); 5773 5765 strcat (def_path, g_pGameDescription->mBaseGame.GetBuffer()); … … 6212 6204 void MainFrame::OnMiscPrintxy() 6213 6205 { 6214 //WXY_Print();6206 WXY_Print(); 6215 6207 } 6216 6208 GtkRadiant/trunk/radiant/map.cpp
r264 r289 580 580 // NOTE TTimo opening has binary doesn't make a lot of sense 581 581 // but opening as text confuses the scriptlib parser 582 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=261583 582 // this may be a problem if we "rb" and use the XML parser, might have an incompatibility 584 583 if (file.Open(filename, "rb")) … … 937 936 938 937 939 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=503940 938 // this is a safe check, but it should not really happen anymore 941 939 vec3_t vOrig; GtkRadiant/trunk/radiant/patchdialog.cpp
r185 r289 54 54 int c = g_PatchDialog.m_nCol; 55 55 if (r >= 0 && r < g_PatchDialog.m_Patch->height && c >= 0 && c < g_PatchDialog.m_Patch->width) 56 { 56 { 57 57 if (g_PatchDialog.m_Patch->pShader) 58 58 g_PatchDialog.m_Patch->pShader->DecRef(); 59 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=46760 59 if (g_PatchDialog.m_strName.Find(' ') >= 0) 61 60 { … … 310 309 GtkObject *adj; 311 310 char buf[32]; 312 311 313 312 dlg = m_pWidget; 314 313 315 314 load_window_pos (dlg, g_PrefsDlg.mWindowInfo.posPatchWnd); 316 315 … … 325 324 gtk_widget_show (vbox); 326 325 gtk_container_add (GTK_CONTAINER (dlg), vbox); 327 gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); 326 gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); 328 327 329 328 hbox = gtk_hbox_new (FALSE, 5); … … 681 680 { 682 681 m_strName = m_Patch->pShader->getName(); 683 682 684 683 GList *combo_list = NULL; 685 684 int i; … … 709 708 combo_list = g_list_remove (combo_list, combo_list->data); 710 709 } 711 710 712 711 m_bListenChanged = true; 713 712 714 713 } 715 714 else GtkRadiant/trunk/radiant/preferences.cpp
r288 r289 284 284 *pV = pNode->children->content; 285 285 } else { 286 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=427287 286 // means the pref exists, and that the value is "" 288 287 *pV = ""; … … 1376 1375 if (!retrieve) 1377 1376 { 1378 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=6391379 1377 // now check if we are running from a network installation 1380 1378 // use a dummy file as the flag … … 1775 1773 #ifdef ATIHACK_812 1776 1774 // ATI bugs 1777 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=8121778 1775 check = gtk_check_button_new_with_label (_("ATI cards with broken drivers - bug #802")); 1779 1776 gtk_widget_show(check); … … 2461 2458 AddDialogData (entry, &m_strPrefabPath, DLG_ENTRY_TEXT); 2462 2459 2463 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=8052464 2460 #if 0 2465 2461 // browse button GtkRadiant/trunk/radiant/qe3.cpp
r285 r289 280 280 // in the long run I'd like to completely get rid of this 281 281 282 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=144283 282 // used to be disabled, but caused problems 284 283 285 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=291286 284 // can't work with long win32 names until the BSP commands are not working differently 287 285 #ifdef _WIN32 … … 380 378 xmlParserCtxtPtr ctxt; 381 379 382 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=433383 380 //if(validate) 384 381 // xmlDoValidityCheckingDefaultValue = 1; … … 602 599 SetKeyValue( g_qeglobals.d_project_entity, "user_project", "1" ); 603 600 604 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=672605 601 if (IntForKey( g_qeglobals.d_project_entity, "version" ) != PROJECT_VERSION) 606 602 { … … 608 604 sprintf(strMsg, 609 605 "The template project '%s' has version %d. The editor binary is configured for version %d.\n" 610 "This indicates a problem in your setup. See http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=672\n"606 "This indicates a problem in your setup.\n" 611 607 "I will keep going with this project till you fix this", 612 608 projectfile, IntForKey( g_qeglobals.d_project_entity, "version" ), PROJECT_VERSION); GtkRadiant/trunk/radiant/qe3.h
r283 r289 49 49 #include <stdio.h> 50 50 51 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=67252 51 // this is the version to expect from template projects 53 52 #define PROJECT_VERSION 2 … … 790 789 extern void RunBsp (char *command); 791 790 extern void Map_Snapshot(); 792 //extern void WXY_Print();791 extern void WXY_Print(); 793 792 extern void AddProp( void ); 794 793 extern qboolean DoColor(int iIndex); GtkRadiant/trunk/radiant/qgl.h
r183 r289 27 27 #define __QGL_H__ 28 28 29 // http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=81230 29 #define ATIHACK_812 31 30 GtkRadiant/trunk/radiant/select.cpp
r185 r289 58 58 //if ( (flags & SF_ENTITIES_FIRST) && brush->owner == world_entity) 59 59 // continue; 60 60 61 61 if (brush->bFiltered) 62 62 continue; … … 87 87 if (b == pToSelect) 88 88 { 89 // yes we want to select the next one in the list 89 // yes we want to select the next one in the list 90 90 int n = (i > 0) ? i-1 : nSize-1; 91 91
