瀏覽代碼

Fixed offsets in resize win to image

master
Bert 13 年之前
父節點
當前提交
09335fdc14
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      Makefile
  2. +2
    -2
      main.c

+ 1
- 1
Makefile 查看文件

@@ -1,6 +1,6 @@
all: sxiv

VERSION=git-20110217
VERSION=git-20110219

CC?=gcc
PREFIX?=/usr/local


+ 2
- 2
main.c 查看文件

@@ -344,8 +344,8 @@ void on_keypress(XKeyEvent *kev) {
/* render on next configurenotify */
break;
case XK_W:
x = win.x + img.x;
y = win.y + img.y;
x = MAX(0, win.x + img.x);
y = MAX(0, win.y + img.y);
w = img.w * img.zoom;
h = img.h * img.zoom;
if ((changed = win_moveresize(&win, x, y, w, h))) {


Loading…
取消
儲存