~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to resize.c

  • Committer: Matthew Fuller
  • Date: 2016-09-27 10:33:11 UTC
  • mfrom: (525.1.16 cleanups)
  • Revision ID: fullermd@over-yonder.net-20160927103311-c3j8dmmr0oazxu3h
Some cleanups on function-handling code.  More in progress.

Harmonize the #define's with the function names they correspond to.
Bunch of comments, including some outstanding questions.  A few minor
non-functional code rearrangements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1006
1006
                switch(func) {
1007
1007
                        case ZOOM_NONE:
1008
1008
                                break;
1009
 
                        case F_VERTZOOM:
 
1009
                        case F_ZOOM:
1010
1010
                                dragHeight = zheight - border_y - frame_bw_times_2;
1011
1011
                                dragy = basey;
1012
1012
                                break;
1076
1076
                ConstrainSize(tmp_win, &dragWidth, &dragHeight);
1077
1077
        }
1078
1078
#ifdef BETTERZOOM
1079
 
        if(func == F_VERTZOOM) {
 
1079
        if(func == F_ZOOM) {
1080
1080
                if(dragy + dragHeight < tmp_win->save_frame_y + tmp_win->save_frame_height) {
1081
1081
                        dragy = tmp_win->save_frame_y + tmp_win->save_frame_height - dragHeight;
1082
1082
                }