Code cleanup: warning fixes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 May 2011 08:01:48 +0000 (08:01 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 May 2011 08:01:48 +0000 (08:01 +0000)
source/blender/editors/space_image/image_buttons.c
source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
source/blender/windowmanager/intern/wm_draw.c
source/blender/windowmanager/intern/wm_operators.c

index c48078118a75701d3bc9874143fda5594112ac7c..60c553752628f60a401885fdd18d9379cc7cfd43 100644 (file)
 
 /* proto */
 
-static void do_image_panel_events(bContext *C, void *UNUSED(arg), int event)
-{
-       SpaceImage *sima= CTX_wm_space_image(C);
-       
-       switch(event) {
-               case B_REDR:
-                       break;
-       }
-
-       /* all events now */
-       WM_event_add_notifier(C, NC_IMAGE, sima->image);
-}
-
 static void image_info(Scene *scene, ImageUser *iuser, Image *ima, ImBuf *ibuf, char *str)
 {
        int ofs= 0;
index ceac1d2ae18154c33571fa57f2ef88edd7306b5f..971658ff482149088e7d9d2d190c29225072a648 100644 (file)
@@ -980,7 +980,7 @@ bool DirectDrawSurface::hasAlpha() const
 {
        if (header.hasDX10Header())
        {
-#pragma NV_MESSAGE("TODO: Update hasAlpha to handle all DX10 formats.")
+               /* TODO: Update hasAlpha to handle all DX10 formats. */
                return 
                        header.header10.dxgiFormat == DXGI_FORMAT_BC1_UNORM ||
                        header.header10.dxgiFormat == DXGI_FORMAT_BC2_UNORM ||
index c94ad74be720b0dc8ba035283ea7ecca3c6ba996..4fe82917705a7cd234bf6376f776718c2c6c68e8 100644 (file)
@@ -816,11 +816,3 @@ void wm_draw_region_clear(wmWindow *win, ARegion *ar)
        win->screen->do_draw= 1;
 }
 
-static void wm_draw_region_modified(wmWindow *win, ARegion *ar)
-{
-       int drawmethod= wm_automatic_draw_method(win);
-
-       if(ELEM(drawmethod, USER_DRAW_OVERLAP, USER_DRAW_OVERLAP_FLIP))
-               ED_region_tag_redraw(ar);
-}
-
index 2b8b0dd03937a6df2b4797e270f3c90a13aa73d7..d32a26549e7bcc104278c9f89e8dbfcc8d1a5bcc 100644 (file)
@@ -2035,6 +2035,8 @@ static void WM_OT_quit_blender(wmOperatorType *ot)
 
 /* *********************** */
 
+#if defined(WIN32)
+
 static int wm_console_toggle_op(bContext *UNUSED(C), wmOperator *UNUSED(op))
 {
        GHOST_toggleConsole(2);
@@ -2051,6 +2053,8 @@ static void WM_OT_console_toggle(wmOperatorType *ot)
        ot->poll= WM_operator_winactive;
 }
 
+#endif
+
 /* ************ default paint cursors, draw always around cursor *********** */
 /*
  - returns handler to free