Mercurial > mplayer.hg
changeset 34684:b03481253518
Cosmetic: Prefer C style for single line comments.
Additionally, slightly revise some of these comments.
author | ib |
---|---|
date | Fri, 24 Feb 2012 17:16:54 +0000 |
parents | 621058eff80f |
children | 311b47301ea7 |
files | gui/app.h gui/cfg.c gui/interface.c gui/ui/actions.c gui/ui/gtk/equalizer.c gui/ui/gtk/fileselect.c gui/ui/gtk/preferences.c gui/ui/main.c gui/ui/menu.c gui/ui/playbar.c gui/ui/sub.c gui/ui/widgets.c gui/util/bitmap.c gui/util/bitmap.h gui/util/list.c gui/win32/gui.c gui/win32/skinload.h gui/wm/ws.c gui/wm/ws.h |
diffstat | 19 files changed, 91 insertions(+), 91 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/app.h Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/app.h Fri Feb 24 17:16:54 2012 +0000 @@ -22,7 +22,7 @@ #include "util/bitmap.h" #include "wm/ws.h" -// User events +/* User events */ #define evNone 0 @@ -73,7 +73,7 @@ #define evIconify 11 #define evExit 1000 -// Internal events +/* Internal events */ #define ivSetAudio 45 #define ivSetVideo 46 @@ -96,7 +96,7 @@ const char *name; } evName; -// Skin items +/* Skin items */ #define itNone 0 #define itButton 101 @@ -111,13 +111,13 @@ #define itPLMButton (itNone - 1) #define itPRMButton (itNone - 2) -// Button states +/* Button states */ #define btnDisabled 0 #define btnReleased 1 #define btnPressed 2 -// Item definition +/* Item definition */ #define MAX_ITEMS 64
--- a/gui/cfg.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/cfg.c Fri Feb 24 17:16:54 2012 +0000 @@ -246,7 +246,7 @@ player_idle_mode = 1; // GUI is in idle mode by default - // configuration + /* configuration */ fname = get_path(gui_configuration); @@ -268,7 +268,7 @@ free(fname); - // playlist + /* playlist */ fname = get_path(gui_playlist); file = fopen(fname, "rt"); @@ -303,7 +303,7 @@ free(fname); - // URL list + /* URL list */ fname = get_path(gui_urllist); file = fopen(fname, "rt"); @@ -331,7 +331,7 @@ free(fname); - // directory history + /* directory history */ fname = get_path(gui_history); file = fopen(fname, "rt"); @@ -354,7 +354,7 @@ char *fname; FILE *file; - // configuration + /* configuration */ fname = get_path(gui_configuration); file = fopen(fname, "wt+"); @@ -388,7 +388,7 @@ free(fname); - // playlist + /* playlist */ fname = get_path(gui_playlist); file = fopen(fname, "wt+"); @@ -410,7 +410,7 @@ free(fname); - // URL list + /* URL list */ fname = get_path(gui_urllist); file = fopen(fname, "wt+"); @@ -430,7 +430,7 @@ free(fname); - // directory history + /* directory history */ fname = get_path(gui_history); file = fopen(fname, "wt+");
--- a/gui/interface.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/interface.c Fri Feb 24 17:16:54 2012 +0000 @@ -97,10 +97,10 @@ gtkInit(); - // initialize X + /* initialize X */ wsXInit(mDisplay); - // load skin + /* load skin */ skinDirInHome = get_path("skins"); skinMPlayerDir = MPLAYER_DATADIR "/skins"; @@ -130,7 +130,7 @@ mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); } - // initialize windows + /* initialize windows */ mainDrawBuffer = malloc(guiApp.main.Bitmap.ImageSize); @@ -445,7 +445,7 @@ break; } - // video opts + /* video opts */ if (!video_driver_list) { int i = 0; @@ -486,7 +486,7 @@ if (gtkVfPP) add_vf("pp"); - // audio opts + /* audio opts */ // if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; } if (gtkAONorm) @@ -555,7 +555,7 @@ } } - // subtitle + /* subtitle */ // subdata->filename=gstrdup( guiInfo.SubtitleFilename ); stream_dump_type = 0; @@ -569,7 +569,7 @@ gtkSubDumpMPSub = gtkSubDumpSrt = 0; mplayerLoadFont(); - // misc + /* misc */ if (gtkCacheOn) stream_cache_size = gtkCacheSize; @@ -641,7 +641,7 @@ case GUI_SET_VIDEO: - // video + /* video */ guiInfo.sh_video = data; @@ -875,7 +875,7 @@ if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL) - // add it to end of list + /* add it to end of list */ if (import_file_into_gui(filename, 0)) result = 1; } @@ -904,7 +904,7 @@ if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL) - // insert it into the list and set plCurrent=new item + /* insert it into the list and set plCurrent=new item */ if (import_file_into_gui(filename, 1)) result = 1; @@ -931,7 +931,7 @@ equalizer_t *eq = (equalizer_t *)data; switch (what) { - // subtitle + /* subtitle */ case MPLAYER_SET_FONT_FACTOR: font_factor = value; @@ -997,7 +997,7 @@ auto_quality = (int)value; break; - // set equalizers + /* set equalizers */ case MPLAYER_SET_CONTRAST: if (guiInfo.sh_video)
--- a/gui/ui/actions.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/actions.c Fri Feb 24 17:16:54 2012 +0000 @@ -135,7 +135,7 @@ } } - // reload menu window + /* reload menu window */ if (prev && guiApp.menuIsPresent) { free(menuDrawBuffer); @@ -153,7 +153,7 @@ } else uiMenuInit(); - // reload sub window + /* reload sub window */ if (guiApp.sub.Bitmap.Image) wsResizeImage(&guiApp.subWindow, guiApp.sub.Bitmap.Width, guiApp.sub.Bitmap.Height); @@ -173,14 +173,14 @@ wsPostRedisplay(&guiApp.subWindow); } - // reload playbar + /* reload playbar */ if (bprev) wsDestroyWindow(&guiApp.playbarWindow); uiPlaybarInit(); - // reload main window + /* reload main window */ free(mainDrawBuffer); mainDrawBuffer = calloc(1, guiApp.main.Bitmap.ImageSize);
--- a/gui/ui/gtk/equalizer.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/gtk/equalizer.c Fri Feb 24 17:16:54 2012 +0000 @@ -501,7 +501,7 @@ return Equalizer; } -// --- equalizer config dialog box +/* equalizer config dialog box */ static GtkWidget * CBChannel1; static GtkWidget * CEChannel1;
--- a/gui/ui/gtk/fileselect.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/gtk/fileselect.c Fri Feb 24 17:16:54 2012 +0000 @@ -396,7 +396,7 @@ for ( i=FF_ARRAY_ELEMS(fsHistory) - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=gstrdup( subject ); } -//----------------------------------------------- +/* ----------------------------------------------- */ static void fs_fsFilterCombo_activate( GtkEntry * entry, gpointer user_data )
--- a/gui/ui/gtk/preferences.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/gtk/preferences.c Fri Feb 24 17:16:54 2012 +0000 @@ -51,7 +51,7 @@ #include "fileselect.h" #include "tools.h" -// for mpcodecs_[av]d_drivers: +/* for mpcodecs_[av]d_drivers: */ #include "libmpcodecs/vd.h" #include "libmpcodecs/ad.h" @@ -201,7 +201,7 @@ if ( Preferences ) gtkActive( Preferences ); else Preferences=create_Preferences(); -// -- 1. page +/* 1st page */ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ),gtkEnableAudioEqualizer ); #if 0 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSurround ),gtkAOSurround ); @@ -242,7 +242,7 @@ } } -// -- 2. page +/* 2nd page */ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBDoubleBuffer ),vo_doublebuffering ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBDR ),vo_directrendering ); @@ -280,7 +280,7 @@ gtk_adjustment_set_value( HSFPSadj,force_fps ); -// -- 3. page +/* 3rd page */ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSubOverlap ),suboverlap_enabled ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBNoAutoSub ),!sub_auto ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBDumpMPSub ),gtkSubDumpMPSub ); @@ -324,8 +324,8 @@ } #endif -// --- 4. page - // font ... +/* 4th page */ + /* font ... */ if ( font_name ) gtk_entry_set_text( GTK_ENTRY( prEFontName ),font_name ); #ifndef CONFIG_FREETYPE gtk_adjustment_set_value( HSFontFactoradj,font_factor ); @@ -350,7 +350,7 @@ } #endif -// -- 5. page +/* 5th page */ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBNonInterlaved ),force_ni ); if ( index_mode == 1 ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBIndex ),1 ); { @@ -385,7 +385,7 @@ if ( name ) gtk_entry_set_text( GTK_ENTRY( EAFM ),name ); } -// --- 6. page +/* 6th page */ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPostprocess ),gtkVfPP ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ),gtkLoadFullscreen ); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ),gui_save_pos ); @@ -416,7 +416,7 @@ if ( cdrom_device ) gtk_entry_set_text( GTK_ENTRY( prECDRomDevice ),cdrom_device ); else gtk_entry_set_text( GTK_ENTRY( prECDRomDevice ),DEFAULT_CDROM_DEVICE ); -// -- disables +/* disables */ #ifndef CONFIG_ASS gtk_widget_set_sensitive( CBUseASS,FALSE ); gtk_widget_set_sensitive( CBASSUseMargins,FALSE ); @@ -424,7 +424,7 @@ gtk_widget_set_sensitive( SBASSBottomMargin,FALSE ); #endif -// -- signals +/* signals */ gtk_signal_connect( GTK_OBJECT( CBExtraStereo ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)0 ); gtk_signal_connect( GTK_OBJECT( CBNormalize ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)1 ); gtk_signal_connect( GTK_OBJECT( CBSoftwareMixer ),"toggled",GTK_SIGNAL_FUNC( prToggled ),(void*)1 ); @@ -529,7 +529,7 @@ switch ( (int)user_data ) { case bOk: - // -- 1. page + /* 1st page */ gtkEnableAudioEqualizer=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ) ); gtkAOExtraStereo=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBExtraStereo ) ); gtkAONorm=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBNormalize ) ); @@ -540,7 +540,7 @@ listSet( &audio_driver_list,ao_driver[0] ); listSet( &video_driver_list,vo_driver[0] ); - // -- 2. page + /* 2nd page */ vo_doublebuffering=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBDoubleBuffer ) ); vo_directrendering=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBDR ) ); @@ -553,7 +553,7 @@ force_fps=HSFPSadj->value; - // -- 3. page + /* 3rd page */ suboverlap_enabled=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBSubOverlap ) ); sub_auto=!gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBNoAutoSub ) ); gtkSubDumpMPSub=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBDumpMPSub ) ); @@ -574,7 +574,7 @@ if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( RBOSDTPTT ) ) ) osd_level=3; - // --- 4. page + /* 4th page */ setdup( &font_name,gtk_entry_get_text( GTK_ENTRY( prEFontName ) ) ); #ifndef CONFIG_FREETYPE mplayer( MPLAYER_SET_FONT_FACTOR,HSFontFactoradj->value,0 ); @@ -589,7 +589,7 @@ if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( RBFontAutoScaleDiagonal ) ) ) mplayer( MPLAYER_SET_FONT_AUTOSCALE,3,0 ); #endif - // -- 5. page + /* -- 5th page */ force_ni=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBNonInterlaved ) ); index_mode=-1; if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBIndex ) ) ) index_mode=1; @@ -610,7 +610,7 @@ { listSet( &audio_fm_list,(char *)mpcodecs_ad_drivers[i]->info->short_name ); break; } } - // --- 6. page + /* 6th page */ gtkVfPP=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBPostprocess ) ); gtkLoadFullscreen=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ) ); gui_save_pos=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ) ); @@ -857,7 +857,7 @@ frame=AddFrame( NULL,GTK_SHADOW_ETCHED_OUT,hbox1,1 ); frame=AddFrame( NULL,GTK_SHADOW_NONE,frame,1 ); -// --- 1. page +/* 1st page */ vbox2=AddVBox( frame,0 ); @@ -910,7 +910,7 @@ label=AddLabel( MSGTR_PREFERENCES_Audio,NULL ); gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),0 ),label ); -// --- 2. page +/* 2nd page */ hbox2=AddVBox( notebook1,0 ); @@ -975,7 +975,7 @@ label=AddLabel( MSGTR_PREFERENCES_Video,NULL ); gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),1 ),label ); -// --- 3. page +/* 3rd page */ vbox6=AddVBox( notebook1,0 ); @@ -1094,7 +1094,7 @@ gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),2 ),label ); vbox601=AddVBox( notebook1,0 ); -// --- 4. page +/* 4th page */ vbox603=AddVBox( AddFrame( NULL,GTK_SHADOW_NONE, @@ -1178,7 +1178,7 @@ label=AddLabel( MSGTR_PREFERENCES_FRAME_Font,NULL ); gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),3 ),label ); -// --- 5. page +/* 5th page */ vbox601=AddVBox( notebook1,0 ); @@ -1222,7 +1222,7 @@ vbox601=AddVBox( notebook1,0 ); -// --- 6. page +/* 6th page */ vbox602=AddVBox( AddFrame( NULL,GTK_SHADOW_NONE, @@ -1300,7 +1300,7 @@ label=AddLabel( MSGTR_PREFERENCES_Misc,NULL ); gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),5 ),label ); -// --- +/* --- */ AddHSeparator( vbox1 ); @@ -1370,7 +1370,7 @@ #ifdef CONFIG_OSS_AUDIO static GList *appendOSSDevices(GList *l) { - // careful! the current implementation allows only string constants! + /* careful! the current implementation allows only string constants! */ l = g_list_append(l, (gpointer)"/dev/dsp"); if (gtkAOOSSDevice && strncmp(gtkAOOSSDevice, "/dev/sound", 10) == 0) { l = g_list_append(l, (gpointer)"/dev/sound/dsp0"); @@ -1395,7 +1395,7 @@ static GList *appendOSSMixers(GList *l) { - // careful! the current implementation allows only string constants! + /* careful! the current implementation allows only string constants! */ l = g_list_append(l, (gpointer)"/dev/mixer"); if (gtkAOOSSMixer && strncmp(gtkAOOSSMixer, "/dev/sound", 10) == 0) { l = g_list_append(l, (gpointer)"/dev/sound/mixer0"); @@ -1706,7 +1706,7 @@ return AudioConfig; } -// --- dxr3 config box +/* dxr3 config box */ static GtkWidget * DXR3Config; static GtkWidget * CBDevice;
--- a/gui/ui/main.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/main.c Fri Feb 24 17:16:54 2012 +0000 @@ -135,7 +135,7 @@ switch( msg ) { -// --- user events +/* user events */ case evExit: mplayer( MPLAYER_EXIT_GUI, EXIT_QUIT, 0 ); break; @@ -406,7 +406,7 @@ guiInfo.NewPlay=GUI_FILE_NEW; break; -// --- timer events +/* timer events */ case ivRedraw: { unsigned now = GetTimerMS(); @@ -420,7 +420,7 @@ wsPostRedisplay( &guiApp.mainWindow ); wsPostRedisplay( &guiApp.playbarWindow ); break; -// --- system events +/* system events */ case evNone: mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[main] uiEventHandling: evNone\n" ); break; @@ -507,7 +507,7 @@ gtkShow( ivShowPopUpMenu,NULL ); break; -// --- rolled mouse ... de szar :))) +/* rolled mouse ... de szar :))) */ case wsP5MouseButton: value=-2.5f; goto rollerhandled; case wsP4MouseButton: value= 2.5f; rollerhandled: @@ -520,7 +520,7 @@ } break; -// --- moving +/* moving */ case wsMoveMouse: item=&guiApp.mainItems[SelectedItem]; switch ( itemtype )
--- a/gui/ui/menu.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/menu.c Fri Feb 24 17:16:54 2012 +0000 @@ -48,7 +48,7 @@ if ( menuRender || menuItem != oldMenuItem ) { memcpy( menuDrawBuffer,guiApp.menu.Bitmap.Image,guiApp.menu.Bitmap.ImageSize ); -// --- +/* --- */ if ( menuItem != -1 ) { buf=(uint32_t *)menuDrawBuffer; @@ -61,7 +61,7 @@ } } oldMenuItem=menuItem; -// --- +/* --- */ wsConvert( &guiApp.menuWindow,menuDrawBuffer ); menuRender=0; }
--- a/gui/ui/playbar.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/playbar.c Fri Feb 24 17:16:54 2012 +0000 @@ -99,7 +99,7 @@ break; } -// --- render +/* render */ if ( guiApp.playbarWindow.State == wsWindowExpose ) { btnModify( evSetMoviePosition,guiInfo.Position ); @@ -141,7 +141,7 @@ case wsRRMouseButton: gtkShow( ivShowPopUpMenu,NULL ); break; -// --- +/* --- */ case wsPLMouseButton: gtkShow( ivHidePopUpMenu,NULL ); SelectedItem=currentselected; @@ -189,7 +189,7 @@ itemtype=0; break; -// --- +/* --- */ case wsP5MouseButton: value=-2.5f; goto rollerhandled; case wsP4MouseButton: value= 2.5f; rollerhandled: @@ -201,7 +201,7 @@ uiEventHandling( item->message,item->value ); } break; -// --- +/* --- */ case wsMoveMouse: item=&guiApp.playbarItems[SelectedItem]; switch ( itemtype )
--- a/gui/ui/sub.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/sub.c Fri Feb 24 17:16:54 2012 +0000 @@ -73,7 +73,7 @@ uiHideMenu( RX,RY,1 ); msButton=0; break; -// --- +/* --- */ case wsPLMouseButton: gtkShow( ivHidePopUpMenu,NULL ); sx=X; sy=Y;
--- a/gui/ui/widgets.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/ui/widgets.c Fri Feb 24 17:16:54 2012 +0000 @@ -69,7 +69,7 @@ #define THRESHOLD 128 // transparency values equal to or above this will become // opaque, all values below this will become transparent -// --- init & close gtk +/* init & close gtk */ guiIcon_t guiIcon; @@ -107,7 +107,7 @@ } else mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_ICONERROR, gui_icon_name, size); - // start up GTK which realizes the pixmaps + /* start up GTK which realizes the pixmaps */ gtk_main_iteration_do(FALSE); } @@ -190,7 +190,7 @@ gtk_main_iteration_do(0); } -// --- funcs +/* funcs */ void gtkMessageBox(int type, const gchar *str) {
--- a/gui/util/bitmap.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/util/bitmap.c Fri Feb 24 17:16:54 2012 +0000 @@ -94,7 +94,7 @@ av_init_packet(&pkt); pkt.data = data; pkt.size = len; - // HACK: make PNGs decode normally instead of as CorePNG delta frames + /* HACK: Make PNGs decode normally instead of as CorePNG delta frames. */ pkt.flags = AV_PKT_FLAG_KEY; avcodec_decode_video2(avctx, frame, &decode_ok, &pkt);
--- a/gui/util/bitmap.h Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/util/bitmap.h Fri Feb 24 17:16:54 2012 +0000 @@ -26,7 +26,7 @@ #define GUI_TRANSPARENT 0xffff00ff #define ALPHA_OPAQUE 0xff000000 -// for legacy reasons, we must treat all kind of fuchsia/magenta as transparent +/* for legacy reasons, we must treat all kind of fuchsia/magenta as transparent */ #define IS_TRANSPARENT(c) ((ALPHA_OPAQUE | (c)) == GUI_TRANSPARENT) typedef struct {
--- a/gui/util/list.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/util/list.c Fri Feb 24 17:16:54 2012 +0000 @@ -49,7 +49,7 @@ urlItem *udat = (urlItem *)data; switch (cmd) { - // playlist + /* playlist */ case PLAYLIST_GET: @@ -154,7 +154,7 @@ plCurrent = NULL; return NULL; - // url list + /* URL list */ case URLLIST_GET:
--- a/gui/win32/gui.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/win32/gui.c Fri Feb 24 17:16:54 2012 +0000 @@ -48,7 +48,7 @@ #include "dialogs.h" #include "version.h" -// HACK around bug in old mingw +/* HACK around bug in old mingw */ #undef INVALID_FILE_ATTRIBUTES #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
--- a/gui/win32/skinload.h Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/win32/skinload.h Fri Feb 24 17:16:54 2012 +0000 @@ -112,7 +112,7 @@ skin_t *loadskin(char *skindir, int desktopbpp); -// --- Widget types --- +/* --- Widget types --- */ #define tyBase 1 #define tyButton 2 @@ -123,14 +123,14 @@ #define tySlabel 7 #define tyDlabel 8 -// --- Window types --- +/* --- Window types --- */ #define wiMain 1 #define wiSub 2 #define wiMenu 3 #define wiPlaybar 4 -// --- User events ------ +/* --- User events --- */ #define evNone 0 #define evPlay 1 @@ -180,7 +180,7 @@ #define evIconify 11 #define evExit 1000 -// --- Internal events --- +/* --- Internal events --- */ #define ivSetAudio 45 #define ivSetVideo 46
--- a/gui/wm/ws.c Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/wm/ws.c Fri Feb 24 17:16:54 2012 +0000 @@ -121,7 +121,7 @@ return -1; } -// --- +/* --- */ #define PACK_RGB16(r, g, b, pixel) pixel = (b >> 3); \ pixel <<= 6; \ @@ -138,7 +138,7 @@ struct SwsContext *sws_ctx = NULL; enum PixelFormat out_pix_fmt = PIX_FMT_NONE; -// --- +/* --- */ #define MWM_HINTS_FUNCTIONS (1L << 0) #define MWM_HINTS_DECORATIONS (1L << 1) @@ -452,9 +452,9 @@ win->OldWidth = win->Width; win->OldHeight = win->Height; -// Border size for window. +/* Border size for window. */ win->BorderWidth = bW; -// Hide Mouse Cursor +/* Hide Mouse Cursor */ win->wsCursor = None; win->wsMouseEventType = cV; win->wsCursorData[0] = 0; @@ -472,7 +472,7 @@ XMatchVisualInfo(wsDisplay, wsScreen, depth, TrueColor, &win->VisualInfo); -// --- +/* --- */ win->AtomLeaderClient = XInternAtom(wsDisplay, "WM_CLIENT_LEADER", False); win->AtomDeleteWindow = XInternAtom(wsDisplay, "WM_DELETE_WINDOW", False); win->AtomTakeFocus = XInternAtom(wsDisplay, "WM_TAKE_FOCUS", False); @@ -483,7 +483,7 @@ win->AtomsProtocols[0] = win->AtomDeleteWindow; win->AtomsProtocols[1] = win->AtomTakeFocus; win->AtomsProtocols[2] = win->AtomRolle; -// --- +/* --- */ win->WindowAttrib.background_pixel = BlackPixel(wsDisplay, wsScreen); win->WindowAttrib.border_pixel = WhitePixel(wsDisplay, wsScreen); @@ -582,7 +582,7 @@ XMapWindow(wsDisplay, win->WindowID); wsCreateImage(win, win->Width, win->Height); -// --- End of creating -------------------------------------------------------------------------- +/* End of creating -------------------------------------------------------------------------- */ { int i; @@ -904,7 +904,7 @@ void wsHandleEvents(void) { - // handle pending events + /* handle pending events */ while (XPending(wsDisplay)) { XNextEvent(wsDisplay, &wsEvent); // printf("### X event: %d [%d]\n",wsEvent.type,delay); @@ -922,7 +922,7 @@ // XIfEvent( wsDisplay,&wsEvent,wsEvents ); while (wsTrue) { - // handle pending events + /* handle pending events */ while (XPending(wsDisplay)) { XNextEvent(wsDisplay, &wsEvent); wsEvents(wsDisplay, &wsEvent);
--- a/gui/wm/ws.h Thu Feb 23 13:48:58 2012 +0000 +++ b/gui/wm/ws.h Fri Feb 24 17:16:54 2012 +0000 @@ -148,7 +148,7 @@ int Control; int NumLock; int CapsLock; -// --- Misc ------------------------------------------------------------------------------------- +/* Misc ------------------------------------------------------------------------------------- */ Atom AtomDeleteWindow; Atom AtomTakeFocus;