Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
d65da691
Commit
d65da691
authored
2 years ago
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve scaling
parent
ea77e6b6
PP-notification
PP-yad
PortProton
master
revert-image-on-top
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
picture.c
src/picture.c
+2
-2
No files found.
src/picture.c
View file @
d65da691
...
...
@@ -218,7 +218,7 @@ change_size_cb (GtkWidget *w, gint type)
options
.
picture_data
.
size
=
YAD_PICTURE_ORIG
;
break
;
case
SIZE_INC
:
new_pb
=
gdk_pixbuf_scale_simple
(
pb
,
width
+
options
.
picture_data
.
inc
,
new_pb
=
gdk_pixbuf_scale_simple
(
img
->
orig_
pb
,
width
+
options
.
picture_data
.
inc
,
height
+
options
.
picture_data
.
inc
,
GDK_INTERP_HYPER
);
if
(
new_pb
)
{
...
...
@@ -227,7 +227,7 @@ change_size_cb (GtkWidget *w, gint type)
}
break
;
case
SIZE_DEC
:
new_pb
=
gdk_pixbuf_scale_simple
(
pb
,
width
-
options
.
picture_data
.
inc
,
new_pb
=
gdk_pixbuf_scale_simple
(
img
->
orig_
pb
,
width
-
options
.
picture_data
.
inc
,
height
-
options
.
picture_data
.
inc
,
GDK_INTERP_HYPER
);
if
(
new_pb
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment