e - remove earns from randr2
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 11 Feb 2015 12:45:39 +0000 (21:45 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 11 Feb 2015 12:45:39 +0000 (21:45 +0900)
for wahetever reason i dont get warnings from gcc:

-Wno-shadow -Wno-unused-but-set-parameter -Wno-clobbered -W -Wall -Wextra

are the warning flags i get and i simplt dont get a tonne like using
uninitialized var. don't know why.

src/bin/e_randr2.c

index 3db8959b52ac85c72215aa2b6e35b7382f131c3c..bc8b21216f5cdde5954865632548b892e1e8b648 100644 (file)
@@ -1446,7 +1446,7 @@ _screen_config_apply(void)
      {
         int dww = 0, dhh = 0, dww2 = 0, dhh2 = 0;
         ecore_x_randr_screen_current_size_get(root, &dww, &dhh, &dww2, &dhh2);
-        printf("RRR: cur size: %ix%i\n", ww, hh);
+        printf("RRR: cur size: %ix%i\n", dww, dhh);
      }
    printf("RRR: size range: %ix%i -> %ix%i\n", minw, minh, maxw, maxh);
    if (nw > maxw) nw = maxw;
@@ -1459,7 +1459,7 @@ _screen_config_apply(void)
      {
         int dww = 0, dhh = 0, dww2 = 0, dhh2 = 0;
         ecore_x_randr_screen_current_size_get(root, &dww, &dhh, &dww2, &dhh2);
-        printf("RRR: cur size: %ix%i\n", ww, hh);
+        printf("RRR: cur size: %ix%i\n", dww, dhh);
      }
    printf("RRR: set vsize: %ix%i\n", nw, nh);
 
@@ -1589,8 +1589,8 @@ _screen_config_apply(void)
 //        ecore_x_randr_screen_reset(root);
 //        ecore_x_randr_screen_current_size_set(root, nw, nh, -1, -1);
 //        ecore_x_sync();
-//        ecore_x_randr_screen_current_size_get(root, &ww, &hh, &ww2, &hh2);
-//        printf("RRR: cur size: %ix%i\n", ww, hh);
+//        ecore_x_randr_screen_current_size_get(root, &dww, &dhh, &dww2, &dhh2);
+//        printf("RRR: cur size: %ix%i\n", dww,d hh);
      }
    ecore_x_randr_screen_size_range_get(root, NULL, NULL, NULL, NULL);
    ecore_x_ungrab();